Struct aws_sdk_codestarconnections::types::Connection
source · #[non_exhaustive]pub struct Connection {
pub connection_name: Option<String>,
pub connection_arn: Option<String>,
pub provider_type: Option<ProviderType>,
pub owner_account_id: Option<String>,
pub connection_status: Option<ConnectionStatus>,
pub host_arn: Option<String>,
}
Expand description
A resource that is used to connect third-party source providers with services like AWS CodePipeline.
Note: A connection created through CloudFormation, the CLI, or the SDK is in `PENDING` status by default. You can make its status `AVAILABLE` by updating the connection in the console.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.connection_name: Option<String>
The name of the connection. Connection names must be unique in an AWS user account.
connection_arn: Option<String>
The Amazon Resource Name (ARN) of the connection. The ARN is used as the connection reference when the connection is shared between AWS services.
The ARN is never reused if the connection is deleted.
provider_type: Option<ProviderType>
The name of the external provider where your third-party code repository is configured.
owner_account_id: Option<String>
The identifier of the external provider where your third-party code repository is configured. For Bitbucket, this is the account ID of the owner of the Bitbucket repository.
connection_status: Option<ConnectionStatus>
The current status of the connection.
host_arn: Option<String>
The Amazon Resource Name (ARN) of the host associated with the connection.
Implementations§
source§impl Connection
impl Connection
sourcepub fn connection_name(&self) -> Option<&str>
pub fn connection_name(&self) -> Option<&str>
The name of the connection. Connection names must be unique in an AWS user account.
sourcepub fn connection_arn(&self) -> Option<&str>
pub fn connection_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the connection. The ARN is used as the connection reference when the connection is shared between AWS services.
The ARN is never reused if the connection is deleted.
sourcepub fn provider_type(&self) -> Option<&ProviderType>
pub fn provider_type(&self) -> Option<&ProviderType>
The name of the external provider where your third-party code repository is configured.
sourcepub fn owner_account_id(&self) -> Option<&str>
pub fn owner_account_id(&self) -> Option<&str>
The identifier of the external provider where your third-party code repository is configured. For Bitbucket, this is the account ID of the owner of the Bitbucket repository.
sourcepub fn connection_status(&self) -> Option<&ConnectionStatus>
pub fn connection_status(&self) -> Option<&ConnectionStatus>
The current status of the connection.
source§impl Connection
impl Connection
sourcepub fn builder() -> ConnectionBuilder
pub fn builder() -> ConnectionBuilder
Creates a new builder-style object to manufacture Connection
.
Trait Implementations§
source§impl Clone for Connection
impl Clone for Connection
source§fn clone(&self) -> Connection
fn clone(&self) -> Connection
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Connection
impl Debug for Connection
source§impl PartialEq<Connection> for Connection
impl PartialEq<Connection> for Connection
source§fn eq(&self, other: &Connection) -> bool
fn eq(&self, other: &Connection) -> bool
self
and other
values to be equal, and is used
by ==
.