Struct AwsCluster (0.5.0)

An Anthos cluster running on AWS.

Fields

name

The name of this resource.

Cluster names are formatted as projects/<project-number>/locations/<region>/awsClusters/<cluster-id>.

See Resource Names for more details on Google Cloud Platform resource names.

description

Optional. A human readable description of this cluster. Cannot be longer than 255 UTF-8 encoded bytes.

networking

Required. Cluster-wide networking configuration.

aws_region

Required. The AWS region where the cluster runs.

Each Google Cloud region supports a subset of nearby AWS regions. You can call GetAwsServerConfig to list all supported AWS regions within a given Google Cloud region.

control_plane

Required. Configuration related to the cluster control plane.

authorization

Required. Configuration related to the cluster RBAC settings.

state

Output only. The current state of the cluster.

endpoint

Output only. The endpoint of the cluster's API server.

uid

Output only. A globally unique identifier for the cluster.

reconciling

Output only. If set, there are currently changes in flight to the cluster.

create_time

Output only. The time at which this cluster was created.

update_time

Output only. The time at which this cluster was last updated.

etag

Allows clients to perform consistent read-modify-writes through optimistic concurrency control.

Can be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

annotations

Optional. Annotations on the cluster.

This field has the same restrictions as Kubernetes annotations. The total size of all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required), separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between.

workload_identity_config

Output only. Workload Identity settings.

cluster_ca_certificate

Output only. PEM encoded x509 certificate of the cluster root of trust.

fleet

Required. Fleet configuration.

logging_config

Optional. Logging configuration for this cluster.

errors

Output only. A set of errors found in the cluster.

monitoring_config

Optional. Monitoring configuration for this cluster.

binary_authorization

Optional. Binary Authorization configuration for this cluster.

Implementations

new

 fn new() -> Self

set_name

 fn set_name<T: std::convert::Into<std::string::String>>(self, v: T) -> Self

Sets the value of [name][crate::model::AwsCluster::name].

set_description

 fn set_description<T: std::convert::Into<std::string::String>>(self, v: T) -> Self

Sets the value of [description][crate::model::AwsCluster::description].

set_networking

 fn set_networking<T>(self, v: T) -> Self
where
    T: std::convert::Into<crate::model::AwsClusterNetworking>,

Sets the value of [networking][crate::model::AwsCluster::networking].

set_or_clear_networking

 fn set_or_clear_networking<T>(self, v: std::option::Option<T>) -> Self
where
    T: std::convert::Into<crate::model::AwsClusterNetworking>,

Sets or clears the value of [networking][crate::model::AwsCluster::networking].

set_aws_region

 fn set_aws_region<T: std::convert::Into<std::string::String>>(self, v: T) -> Self

Sets the value of [aws_region][crate::model::AwsCluster::aws_region].

set_control_plane

 fn set_control_plane<T>(self, v: T) -> Self
where
    T: std::convert::Into<crate::model::AwsControlPlane>,

Sets the value of [control_plane][crate::model::AwsCluster::control_plane].

set_or_clear_control_plane

 fn set_or_clear_control_plane<T>(self, v: std::option::Option<T>) -> Self
where
    T: std::convert::Into<crate::model::AwsControlPlane>,

Sets or clears the value of [control_plane][crate::model::AwsCluster::control_plane].

set_authorization

 fn set_authorization<T>(self, v: T) -> Self
where
    T: std::convert::Into<crate::model::AwsAuthorization>,

Sets the value of [authorization][crate::model::AwsCluster::authorization].

set_or_clear_authorization

 fn set_or_clear_authorization<T>(self, v: std::option::Option<T>) -> Self
where
    T: std::convert::Into<crate::model::AwsAuthorization>,

Sets or clears the value of [authorization][crate::model::AwsCluster::authorization].

set_state

 fn set_state<T: std::convert::Into<crate::model::aws_cluster::State>>(self, v: T) -> Self

Sets the value of [state][crate::model::AwsCluster::state].

set_endpoint

 fn set_endpoint<T: std::convert::Into<std::string::String>>(self, v: T) -> Self

Sets the value of [endpoint][crate::model::AwsCluster::endpoint].

set_uid

 fn set_uid<T: std::convert::Into<std::string::String>>(self, v: T) -> Self

Sets the value of [uid][crate::model::AwsCluster::uid].

set_reconciling

 fn set_reconciling<T: std::convert::Into<bool>>(self, v: T) -> Self

Sets the value of [reconciling][crate::model::AwsCluster::reconciling].

set_create_time

 fn set_create_time<T>(self, v: T) -> Self
where
    T: std::convert::Into<wkt::Timestamp>,

Sets the value of [create_time][crate::model::AwsCluster::create_time].

set_or_clear_create_time

 fn set_or_clear_create_time<T>(self, v: std::option::Option<T>) -> Self
where
    T: std::convert::Into<wkt::Timestamp>,

Sets or clears the value of [create_time][crate::model::AwsCluster::create_time].

set_update_time

 fn set_update_time<T>(self, v: T) -> Self
where
    T: std::convert::Into<wkt::Timestamp>,

Sets the value of [update_time][crate::model::AwsCluster::update_time].

set_or_clear_update_time

 fn set_or_clear_update_time<T>(self, v: std::option::Option<T>) -> Self
where
    T: std::convert::Into<wkt::Timestamp>,

Sets or clears the value of [update_time][crate::model::AwsCluster::update_time].

set_etag

 fn set_etag<T: std::convert::Into<std::string::String>>(self, v: T) -> Self

Sets the value of [etag][crate::model::AwsCluster::etag].

set_annotations

 fn set_annotations<T, K, V>(self, v: T) -> Self
where
    T: std::iter::IntoIterator,
    K: std::convert::Into<std::string::String>,
    V: std::convert::Into<std::string::String>,

Sets the value of [annotations][crate::model::AwsCluster::annotations].

set_workload_identity_config

 fn set_workload_identity_config<T>(self, v: T) -> Self
where
    T: std::convert::Into<crate::model::WorkloadIdentityConfig>,

Sets the value of [workload_identity_config][crate::model::AwsCluster::workload_identity_config].

set_or_clear_workload_identity_config

 fn set_or_clear_workload_identity_config<T>(self, v: std::option::Option<T>) -> Self
where
    T: std::convert::Into<crate::model::WorkloadIdentityConfig>,

Sets or clears the value of [workload_identity_config][crate::model::AwsCluster::workload_identity_config].

set_cluster_ca_certificate

 fn set_cluster_ca_certificate<T: std::convert::Into<std::string::String>>(self, v: T) -> Self

Sets the value of [cluster_ca_certificate][crate::model::AwsCluster::cluster_ca_certificate].

set_fleet

 fn set_fleet<T>(self, v: T) -> Self
where
    T: std::convert::Into<crate::model::Fleet>,

Sets the value of [fleet][crate::model::AwsCluster::fleet].

set_or_clear_fleet

 fn set_or_clear_fleet<T>(self, v: std::option::Option<T>) -> Self
where
    T: std::convert::Into<crate::model::Fleet>,

Sets or clears the value of [fleet][crate::model::AwsCluster::fleet].

set_logging_config

 fn set_logging_config<T>(self, v: T) -> Self
where
    T: std::convert::Into<crate::model::LoggingConfig>,

Sets the value of [logging_config][crate::model::AwsCluster::logging_config].

set_or_clear_logging_config

 fn set_or_clear_logging_config<T>(self, v: std::option::Option<T>) -> Self
where
    T: std::convert::Into<crate::model::LoggingConfig>,

Sets or clears the value of [logging_config][crate::model::AwsCluster::logging_config].

set_errors

 fn set_errors<T, V>(self, v: T) -> Self
where
    T: std::iter::IntoIterator,
    V: std::convert::Into<crate::model::AwsClusterError>,

Sets the value of [errors][crate::model::AwsCluster::errors].

set_monitoring_config

 fn set_monitoring_config<T>(self, v: T) -> Self
where
    T: std::convert::Into<crate::model::MonitoringConfig>,

Sets the value of [monitoring_config][crate::model::AwsCluster::monitoring_config].

set_or_clear_monitoring_config

 fn set_or_clear_monitoring_config<T>(self, v: std::option::Option<T>) -> Self
where
    T: std::convert::Into<crate::model::MonitoringConfig>,

Sets or clears the value of [monitoring_config][crate::model::AwsCluster::monitoring_config].

set_binary_authorization

 fn set_binary_authorization<T>(self, v: T) -> Self
where
    T: std::convert::Into<crate::model::BinaryAuthorization>,

Sets the value of [binary_authorization][crate::model::AwsCluster::binary_authorization].

set_or_clear_binary_authorization

 fn set_or_clear_binary_authorization<T>(self, v: std::option::Option<T>) -> Self
where
    T: std::convert::Into<crate::model::BinaryAuthorization>,

Sets or clears the value of [binary_authorization][crate::model::AwsCluster::binary_authorization].