Struct aws_sdk_codestarconnections::Client
source · pub struct Client { /* private fields */ }
Expand description
Client for AWS CodeStar connections
Client for invoking operations on AWS CodeStar connections. Each operation on AWS CodeStar connections is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
§Constructing a Client
A Config
is required to construct a client. For most use cases, the aws-config
crate should be used to automatically resolve this config using
aws_config::load_from_env()
, since this will resolve an SdkConfig
which can be shared
across multiple different AWS SDK clients. This config resolution process can be customized
by calling aws_config::from_env()
instead, which returns a ConfigLoader
that uses
the builder pattern to customize the default config.
In the simplest case, creating a client looks as follows:
let config = aws_config::load_from_env().await;
let client = aws_sdk_codestarconnections::Client::new(&config);
Occasionally, SDKs may have additional service-specific values that can be set on the Config
that
is absent from SdkConfig
, or slightly different settings for a specific client may be desired.
The Config
struct implements From<&SdkConfig>
, so setting these specific settings can be
done as follows:
let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_codestarconnections::config::Builder::from(&sdk_config)
.some_service_specific_setting("value")
.build();
See the aws-config
docs and Config
for more information on customizing configuration.
Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.
§Using the Client
A client has a function for every operation that can be performed by the service.
For example, the CreateConnection
operation has
a Client::create_connection
, function which returns a builder for that operation.
The fluent builder ultimately has a send()
function that returns an async future that
returns a result, as illustrated below:
let result = client.create_connection()
.provider_type("example")
.send()
.await;
The underlying HTTP requests that get made by this can be modified with the customize_operation
function on the fluent builder. See the customize
module for more
information.
Implementations§
source§impl Client
impl Client
sourcepub fn create_connection(&self) -> CreateConnectionFluentBuilder
pub fn create_connection(&self) -> CreateConnectionFluentBuilder
Constructs a fluent builder for the CreateConnection
operation.
- The fluent builder is configurable:
provider_type(ProviderType)
/set_provider_type(Option<ProviderType>)
:
required: falseThe name of the external provider where your third-party code repository is configured.
connection_name(impl Into<String>)
/set_connection_name(Option<String>)
:
required: trueThe name of the connection to be created.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseThe key-value pair to use when tagging the resource.
host_arn(impl Into<String>)
/set_host_arn(Option<String>)
:
required: falseThe Amazon Resource Name (ARN) of the host associated with the connection to be created.
- On success, responds with
CreateConnectionOutput
with field(s):connection_arn(String)
:The Amazon Resource Name (ARN) of the connection to be created. The ARN is used as the connection reference when the connection is shared between Amazon Web Services services.
The ARN is never reused if the connection is deleted.
tags(Option<Vec::<Tag>>)
:Specifies the tags applied to the resource.
- On failure, responds with
SdkError<CreateConnectionError>
source§impl Client
impl Client
sourcepub fn create_host(&self) -> CreateHostFluentBuilder
pub fn create_host(&self) -> CreateHostFluentBuilder
Constructs a fluent builder for the CreateHost
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the host to be created.
provider_type(ProviderType)
/set_provider_type(Option<ProviderType>)
:
required: trueThe name of the installed provider to be associated with your connection. The host resource represents the infrastructure where your provider type is installed. The valid provider type is GitHub Enterprise Server.
provider_endpoint(impl Into<String>)
/set_provider_endpoint(Option<String>)
:
required: trueThe endpoint of the infrastructure to be represented by the host after it is created.
vpc_configuration(VpcConfiguration)
/set_vpc_configuration(Option<VpcConfiguration>)
:
required: falseThe VPC configuration to be provisioned for the host. A VPC must be configured and the infrastructure to be represented by the host must already be connected to the VPC.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseTags for the host to be created.
- On success, responds with
CreateHostOutput
with field(s):host_arn(Option<String>)
:The Amazon Resource Name (ARN) of the host to be created.
tags(Option<Vec::<Tag>>)
:Tags for the created host.
- On failure, responds with
SdkError<CreateHostError>
source§impl Client
impl Client
sourcepub fn create_repository_link(&self) -> CreateRepositoryLinkFluentBuilder
pub fn create_repository_link(&self) -> CreateRepositoryLinkFluentBuilder
Constructs a fluent builder for the CreateRepositoryLink
operation.
- The fluent builder is configurable:
connection_arn(impl Into<String>)
/set_connection_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the connection to be associated with the repository link.
owner_id(impl Into<String>)
/set_owner_id(Option<String>)
:
required: trueThe owner ID for the repository associated with a specific sync configuration, such as the owner ID in GitHub.
repository_name(impl Into<String>)
/set_repository_name(Option<String>)
:
required: trueThe name of the repository to be associated with the repository link.
encryption_key_arn(impl Into<String>)
/set_encryption_key_arn(Option<String>)
:
required: falseThe Amazon Resource Name (ARN) encryption key for the repository to be associated with the repository link.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseThe tags for the repository to be associated with the repository link.
- On success, responds with
CreateRepositoryLinkOutput
with field(s):repository_link_info(Option<RepositoryLinkInfo>)
:The returned information about the created repository link.
- On failure, responds with
SdkError<CreateRepositoryLinkError>
source§impl Client
impl Client
sourcepub fn create_sync_configuration(&self) -> CreateSyncConfigurationFluentBuilder
pub fn create_sync_configuration(&self) -> CreateSyncConfigurationFluentBuilder
Constructs a fluent builder for the CreateSyncConfiguration
operation.
- The fluent builder is configurable:
branch(impl Into<String>)
/set_branch(Option<String>)
:
required: trueThe branch in the repository from which changes will be synced.
config_file(impl Into<String>)
/set_config_file(Option<String>)
:
required: trueThe file name of the configuration file that manages syncing between the connection and the repository. This configuration file is stored in the repository.
repository_link_id(impl Into<String>)
/set_repository_link_id(Option<String>)
:
required: trueThe ID of the repository link created for the connection. A repository link allows Git sync to monitor and sync changes to files in a specified Git repository.
resource_name(impl Into<String>)
/set_resource_name(Option<String>)
:
required: trueThe name of the Amazon Web Services resource (for example, a CloudFormation stack in the case of CFN_STACK_SYNC) that will be synchronized from the linked repository.
role_arn(impl Into<String>)
/set_role_arn(Option<String>)
:
required: trueThe ARN of the IAM role that grants permission for Amazon Web Services to use Git sync to update a given Amazon Web Services resource on your behalf.
sync_type(SyncConfigurationType)
/set_sync_type(Option<SyncConfigurationType>)
:
required: trueThe type of sync configuration.
publish_deployment_status(PublishDeploymentStatus)
/set_publish_deployment_status(Option<PublishDeploymentStatus>)
:
required: falseWhether to enable or disable publishing of deployment status to source providers.
trigger_resource_update_on(TriggerResourceUpdateOn)
/set_trigger_resource_update_on(Option<TriggerResourceUpdateOn>)
:
required: falseWhen to trigger Git sync to begin the stack update.
- On success, responds with
CreateSyncConfigurationOutput
with field(s):sync_configuration(Option<SyncConfiguration>)
:The created sync configuration for the connection. A sync configuration allows Amazon Web Services to sync content from a Git repository to update a specified Amazon Web Services resource.
- On failure, responds with
SdkError<CreateSyncConfigurationError>
source§impl Client
impl Client
sourcepub fn delete_connection(&self) -> DeleteConnectionFluentBuilder
pub fn delete_connection(&self) -> DeleteConnectionFluentBuilder
Constructs a fluent builder for the DeleteConnection
operation.
- The fluent builder is configurable:
connection_arn(impl Into<String>)
/set_connection_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the connection to be deleted.
The ARN is never reused if the connection is deleted.
- On success, responds with
DeleteConnectionOutput
- On failure, responds with
SdkError<DeleteConnectionError>
source§impl Client
impl Client
sourcepub fn delete_host(&self) -> DeleteHostFluentBuilder
pub fn delete_host(&self) -> DeleteHostFluentBuilder
Constructs a fluent builder for the DeleteHost
operation.
- The fluent builder is configurable:
host_arn(impl Into<String>)
/set_host_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the host to be deleted.
- On success, responds with
DeleteHostOutput
- On failure, responds with
SdkError<DeleteHostError>
source§impl Client
impl Client
sourcepub fn delete_repository_link(&self) -> DeleteRepositoryLinkFluentBuilder
pub fn delete_repository_link(&self) -> DeleteRepositoryLinkFluentBuilder
Constructs a fluent builder for the DeleteRepositoryLink
operation.
- The fluent builder is configurable:
repository_link_id(impl Into<String>)
/set_repository_link_id(Option<String>)
:
required: trueThe ID of the repository link to be deleted.
- On success, responds with
DeleteRepositoryLinkOutput
- On failure, responds with
SdkError<DeleteRepositoryLinkError>
source§impl Client
impl Client
sourcepub fn delete_sync_configuration(&self) -> DeleteSyncConfigurationFluentBuilder
pub fn delete_sync_configuration(&self) -> DeleteSyncConfigurationFluentBuilder
Constructs a fluent builder for the DeleteSyncConfiguration
operation.
- The fluent builder is configurable:
sync_type(SyncConfigurationType)
/set_sync_type(Option<SyncConfigurationType>)
:
required: trueThe type of sync configuration to be deleted.
resource_name(impl Into<String>)
/set_resource_name(Option<String>)
:
required: trueThe name of the Amazon Web Services resource associated with the sync configuration to be deleted.
- On success, responds with
DeleteSyncConfigurationOutput
- On failure, responds with
SdkError<DeleteSyncConfigurationError>
source§impl Client
impl Client
sourcepub fn get_connection(&self) -> GetConnectionFluentBuilder
pub fn get_connection(&self) -> GetConnectionFluentBuilder
Constructs a fluent builder for the GetConnection
operation.
- The fluent builder is configurable:
connection_arn(impl Into<String>)
/set_connection_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of a connection.
- On success, responds with
GetConnectionOutput
with field(s):connection(Option<Connection>)
:The connection details, such as status, owner, and provider type.
- On failure, responds with
SdkError<GetConnectionError>
source§impl Client
impl Client
sourcepub fn get_host(&self) -> GetHostFluentBuilder
pub fn get_host(&self) -> GetHostFluentBuilder
Constructs a fluent builder for the GetHost
operation.
- The fluent builder is configurable:
host_arn(impl Into<String>)
/set_host_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the requested host.
- On success, responds with
GetHostOutput
with field(s):name(Option<String>)
:The name of the requested host.
status(Option<String>)
:The status of the requested host.
provider_type(Option<ProviderType>)
:The provider type of the requested host, such as GitHub Enterprise Server.
provider_endpoint(Option<String>)
:The endpoint of the infrastructure represented by the requested host.
vpc_configuration(Option<VpcConfiguration>)
:The VPC configuration of the requested host.
- On failure, responds with
SdkError<GetHostError>
source§impl Client
impl Client
sourcepub fn get_repository_link(&self) -> GetRepositoryLinkFluentBuilder
pub fn get_repository_link(&self) -> GetRepositoryLinkFluentBuilder
Constructs a fluent builder for the GetRepositoryLink
operation.
- The fluent builder is configurable:
repository_link_id(impl Into<String>)
/set_repository_link_id(Option<String>)
:
required: trueThe ID of the repository link to get.
- On success, responds with
GetRepositoryLinkOutput
with field(s):repository_link_info(Option<RepositoryLinkInfo>)
:The information returned for a specified repository link.
- On failure, responds with
SdkError<GetRepositoryLinkError>
source§impl Client
impl Client
sourcepub fn get_repository_sync_status(&self) -> GetRepositorySyncStatusFluentBuilder
pub fn get_repository_sync_status(&self) -> GetRepositorySyncStatusFluentBuilder
Constructs a fluent builder for the GetRepositorySyncStatus
operation.
- The fluent builder is configurable:
branch(impl Into<String>)
/set_branch(Option<String>)
:
required: trueThe branch of the repository link for the requested repository sync status.
repository_link_id(impl Into<String>)
/set_repository_link_id(Option<String>)
:
required: trueThe repository link ID for the requested repository sync status.
sync_type(SyncConfigurationType)
/set_sync_type(Option<SyncConfigurationType>)
:
required: trueThe sync type of the requested sync status.
- On success, responds with
GetRepositorySyncStatusOutput
with field(s):latest_sync(Option<RepositorySyncAttempt>)
:The status of the latest sync returned for a specified repository and branch.
- On failure, responds with
SdkError<GetRepositorySyncStatusError>
source§impl Client
impl Client
sourcepub fn get_resource_sync_status(&self) -> GetResourceSyncStatusFluentBuilder
pub fn get_resource_sync_status(&self) -> GetResourceSyncStatusFluentBuilder
Constructs a fluent builder for the GetResourceSyncStatus
operation.
- The fluent builder is configurable:
resource_name(impl Into<String>)
/set_resource_name(Option<String>)
:
required: trueThe name of the Amazon Web Services resource for the sync status with the Git repository.
sync_type(SyncConfigurationType)
/set_sync_type(Option<SyncConfigurationType>)
:
required: trueThe sync type for the sync status with the Git repository.
- On success, responds with
GetResourceSyncStatusOutput
with field(s):desired_state(Option<Revision>)
:The desired state of the Amazon Web Services resource for the sync status with the Git repository.
latest_successful_sync(Option<ResourceSyncAttempt>)
:The latest successful sync for the sync status with the Git repository.
latest_sync(Option<ResourceSyncAttempt>)
:The latest sync for the sync status with the Git repository, whether successful or not.
- On failure, responds with
SdkError<GetResourceSyncStatusError>
source§impl Client
impl Client
sourcepub fn get_sync_blocker_summary(&self) -> GetSyncBlockerSummaryFluentBuilder
pub fn get_sync_blocker_summary(&self) -> GetSyncBlockerSummaryFluentBuilder
Constructs a fluent builder for the GetSyncBlockerSummary
operation.
- The fluent builder is configurable:
sync_type(SyncConfigurationType)
/set_sync_type(Option<SyncConfigurationType>)
:
required: trueThe sync type for the sync blocker summary.
resource_name(impl Into<String>)
/set_resource_name(Option<String>)
:
required: trueThe name of the Amazon Web Services resource currently blocked from automatically being synced from a Git repository.
- On success, responds with
GetSyncBlockerSummaryOutput
with field(s):sync_blocker_summary(Option<SyncBlockerSummary>)
:The list of sync blockers for a specified resource.
- On failure, responds with
SdkError<GetSyncBlockerSummaryError>
source§impl Client
impl Client
sourcepub fn get_sync_configuration(&self) -> GetSyncConfigurationFluentBuilder
pub fn get_sync_configuration(&self) -> GetSyncConfigurationFluentBuilder
Constructs a fluent builder for the GetSyncConfiguration
operation.
- The fluent builder is configurable:
sync_type(SyncConfigurationType)
/set_sync_type(Option<SyncConfigurationType>)
:
required: trueThe sync type for the sync configuration for which you want to retrieve information.
resource_name(impl Into<String>)
/set_resource_name(Option<String>)
:
required: trueThe name of the Amazon Web Services resource for the sync configuration for which you want to retrieve information.
- On success, responds with
GetSyncConfigurationOutput
with field(s):sync_configuration(Option<SyncConfiguration>)
:The details about the sync configuration for which you want to retrieve information.
- On failure, responds with
SdkError<GetSyncConfigurationError>
source§impl Client
impl Client
sourcepub fn list_connections(&self) -> ListConnectionsFluentBuilder
pub fn list_connections(&self) -> ListConnectionsFluentBuilder
Constructs a fluent builder for the ListConnections
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
provider_type_filter(ProviderType)
/set_provider_type_filter(Option<ProviderType>)
:
required: falseFilters the list of connections to those associated with a specified provider, such as Bitbucket.
host_arn_filter(impl Into<String>)
/set_host_arn_filter(Option<String>)
:
required: falseFilters the list of connections to those associated with a specified host.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned
nextToken
value.next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe token that was returned from the previous
ListConnections
call, which can be used to return the next set of connections in the list.
- On success, responds with
ListConnectionsOutput
with field(s):connections(Option<Vec::<Connection>>)
:A list of connections and the details for each connection, such as status, owner, and provider type.
next_token(Option<String>)
:A token that can be used in the next
ListConnections
call. To view all items in the list, continue to call this operation with each subsequent token until no morenextToken
values are returned.
- On failure, responds with
SdkError<ListConnectionsError>
source§impl Client
impl Client
sourcepub fn list_hosts(&self) -> ListHostsFluentBuilder
pub fn list_hosts(&self) -> ListHostsFluentBuilder
Constructs a fluent builder for the ListHosts
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned
nextToken
value.next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe token that was returned from the previous
ListHosts
call, which can be used to return the next set of hosts in the list.
- On success, responds with
ListHostsOutput
with field(s):hosts(Option<Vec::<Host>>)
:A list of hosts and the details for each host, such as status, endpoint, and provider type.
next_token(Option<String>)
:A token that can be used in the next
ListHosts
call. To view all items in the list, continue to call this operation with each subsequent token until no morenextToken
values are returned.
- On failure, responds with
SdkError<ListHostsError>
source§impl Client
impl Client
sourcepub fn list_repository_links(&self) -> ListRepositoryLinksFluentBuilder
pub fn list_repository_links(&self) -> ListRepositoryLinksFluentBuilder
Constructs a fluent builder for the ListRepositoryLinks
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseA non-zero, non-negative integer used to limit the number of returned results.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseAn enumeration token that, when provided in a request, returns the next batch of the results.
- On success, responds with
ListRepositoryLinksOutput
with field(s):repository_links(Vec::<RepositoryLinkInfo>)
:Lists the repository links called by the list repository links operation.
next_token(Option<String>)
:An enumeration token that allows the operation to batch the results of the operation.
- On failure, responds with
SdkError<ListRepositoryLinksError>
source§impl Client
impl Client
sourcepub fn list_repository_sync_definitions(
&self
) -> ListRepositorySyncDefinitionsFluentBuilder
pub fn list_repository_sync_definitions( &self ) -> ListRepositorySyncDefinitionsFluentBuilder
Constructs a fluent builder for the ListRepositorySyncDefinitions
operation.
- The fluent builder is configurable:
repository_link_id(impl Into<String>)
/set_repository_link_id(Option<String>)
:
required: trueThe ID of the repository link for the sync definition for which you want to retrieve information.
sync_type(SyncConfigurationType)
/set_sync_type(Option<SyncConfigurationType>)
:
required: trueThe sync type of the repository link for the the sync definition for which you want to retrieve information.
- On success, responds with
ListRepositorySyncDefinitionsOutput
with field(s):repository_sync_definitions(Vec::<RepositorySyncDefinition>)
:The list of repository sync definitions returned by the request. A
RepositorySyncDefinition
is a mapping from a repository branch to all the Amazon Web Services resources that are being synced from that branch.next_token(Option<String>)
:An enumeration token that, when provided in a request, returns the next batch of the results.
- On failure, responds with
SdkError<ListRepositorySyncDefinitionsError>
source§impl Client
impl Client
sourcepub fn list_sync_configurations(&self) -> ListSyncConfigurationsFluentBuilder
pub fn list_sync_configurations(&self) -> ListSyncConfigurationsFluentBuilder
Constructs a fluent builder for the ListSyncConfigurations
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseA non-zero, non-negative integer used to limit the number of returned results.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseAn enumeration token that allows the operation to batch the results of the operation.
repository_link_id(impl Into<String>)
/set_repository_link_id(Option<String>)
:
required: trueThe ID of the repository link for the requested list of sync configurations.
sync_type(SyncConfigurationType)
/set_sync_type(Option<SyncConfigurationType>)
:
required: trueThe sync type for the requested list of sync configurations.
- On success, responds with
ListSyncConfigurationsOutput
with field(s):sync_configurations(Vec::<SyncConfiguration>)
:The list of repository sync definitions returned by the request.
next_token(Option<String>)
:An enumeration token that allows the operation to batch the next results of the operation.
- On failure, responds with
SdkError<ListSyncConfigurationsError>
source§impl Client
impl Client
Constructs a fluent builder for the ListTagsForResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the resource for which you want to get information about tags, if any.
- On success, responds with
ListTagsForResourceOutput
with field(s):tags(Option<Vec::<Tag>>)
:A list of tag key and value pairs associated with the specified resource.
- On failure, responds with
SdkError<ListTagsForResourceError>
source§impl Client
impl Client
sourcepub fn tag_resource(&self) -> TagResourceFluentBuilder
pub fn tag_resource(&self) -> TagResourceFluentBuilder
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the resource to which you want to add or update tags.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: trueThe tags you want to modify or add to the resource.
- On success, responds with
TagResourceOutput
- On failure, responds with
SdkError<TagResourceError>
source§impl Client
impl Client
sourcepub fn untag_resource(&self) -> UntagResourceFluentBuilder
pub fn untag_resource(&self) -> UntagResourceFluentBuilder
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the resource to remove tags from.
tag_keys(impl Into<String>)
/set_tag_keys(Option<Vec::<String>>)
:
required: trueThe list of keys for the tags to be removed from the resource.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
source§impl Client
impl Client
sourcepub fn update_host(&self) -> UpdateHostFluentBuilder
pub fn update_host(&self) -> UpdateHostFluentBuilder
Constructs a fluent builder for the UpdateHost
operation.
- The fluent builder is configurable:
host_arn(impl Into<String>)
/set_host_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the host to be updated.
provider_endpoint(impl Into<String>)
/set_provider_endpoint(Option<String>)
:
required: falseThe URL or endpoint of the host to be updated.
vpc_configuration(VpcConfiguration)
/set_vpc_configuration(Option<VpcConfiguration>)
:
required: falseThe VPC configuration of the host to be updated. A VPC must be configured and the infrastructure to be represented by the host must already be connected to the VPC.
- On success, responds with
UpdateHostOutput
- On failure, responds with
SdkError<UpdateHostError>
source§impl Client
impl Client
sourcepub fn update_repository_link(&self) -> UpdateRepositoryLinkFluentBuilder
pub fn update_repository_link(&self) -> UpdateRepositoryLinkFluentBuilder
Constructs a fluent builder for the UpdateRepositoryLink
operation.
- The fluent builder is configurable:
connection_arn(impl Into<String>)
/set_connection_arn(Option<String>)
:
required: falseThe Amazon Resource Name (ARN) of the connection for the repository link to be updated. The updated connection ARN must have the same providerType (such as GitHub) as the original connection ARN for the repo link.
encryption_key_arn(impl Into<String>)
/set_encryption_key_arn(Option<String>)
:
required: falseThe Amazon Resource Name (ARN) of the encryption key for the repository link to be updated.
repository_link_id(impl Into<String>)
/set_repository_link_id(Option<String>)
:
required: trueThe ID of the repository link to be updated.
- On success, responds with
UpdateRepositoryLinkOutput
with field(s):repository_link_info(Option<RepositoryLinkInfo>)
:Information about the repository link to be updated.
- On failure, responds with
SdkError<UpdateRepositoryLinkError>
source§impl Client
impl Client
sourcepub fn update_sync_blocker(&self) -> UpdateSyncBlockerFluentBuilder
pub fn update_sync_blocker(&self) -> UpdateSyncBlockerFluentBuilder
Constructs a fluent builder for the UpdateSyncBlocker
operation.
- The fluent builder is configurable:
id(impl Into<String>)
/set_id(Option<String>)
:
required: trueThe ID of the sync blocker to be updated.
sync_type(SyncConfigurationType)
/set_sync_type(Option<SyncConfigurationType>)
:
required: trueThe sync type of the sync blocker to be updated.
resource_name(impl Into<String>)
/set_resource_name(Option<String>)
:
required: trueThe name of the resource for the sync blocker to be updated.
resolved_reason(impl Into<String>)
/set_resolved_reason(Option<String>)
:
required: trueThe reason for resolving the sync blocker.
- On success, responds with
UpdateSyncBlockerOutput
with field(s):resource_name(String)
:The resource name for the sync blocker.
parent_resource_name(Option<String>)
:The parent resource name for the sync blocker.
sync_blocker(Option<SyncBlocker>)
:Information about the sync blocker to be updated.
- On failure, responds with
SdkError<UpdateSyncBlockerError>
source§impl Client
impl Client
sourcepub fn update_sync_configuration(&self) -> UpdateSyncConfigurationFluentBuilder
pub fn update_sync_configuration(&self) -> UpdateSyncConfigurationFluentBuilder
Constructs a fluent builder for the UpdateSyncConfiguration
operation.
- The fluent builder is configurable:
branch(impl Into<String>)
/set_branch(Option<String>)
:
required: falseThe branch for the sync configuration to be updated.
config_file(impl Into<String>)
/set_config_file(Option<String>)
:
required: falseThe configuration file for the sync configuration to be updated.
repository_link_id(impl Into<String>)
/set_repository_link_id(Option<String>)
:
required: falseThe ID of the repository link for the sync configuration to be updated.
resource_name(impl Into<String>)
/set_resource_name(Option<String>)
:
required: trueThe name of the Amazon Web Services resource for the sync configuration to be updated.
role_arn(impl Into<String>)
/set_role_arn(Option<String>)
:
required: falseThe ARN of the IAM role for the sync configuration to be updated.
sync_type(SyncConfigurationType)
/set_sync_type(Option<SyncConfigurationType>)
:
required: trueThe sync type for the sync configuration to be updated.
publish_deployment_status(PublishDeploymentStatus)
/set_publish_deployment_status(Option<PublishDeploymentStatus>)
:
required: falseWhether to enable or disable publishing of deployment status to source providers.
trigger_resource_update_on(TriggerResourceUpdateOn)
/set_trigger_resource_update_on(Option<TriggerResourceUpdateOn>)
:
required: falseWhen to trigger Git sync to begin the stack update.
- On success, responds with
UpdateSyncConfigurationOutput
with field(s):sync_configuration(Option<SyncConfiguration>)
:The information returned for the sync configuration to be updated.
- On failure, responds with
SdkError<UpdateSyncConfigurationError>
source§impl Client
impl Client
sourcepub fn from_conf(conf: Config) -> Self
pub fn from_conf(conf: Config) -> Self
Creates a new client from the service Config
.
§Panics
This method will panic in the following cases:
- Retries or timeouts are enabled without a
sleep_impl
configured. - Identity caching is enabled without a
sleep_impl
andtime_source
configured. - No
behavior_version
is provided.
The panic message for each of these will have instructions on how to resolve them.
source§impl Client
impl Client
sourcepub fn new(sdk_config: &SdkConfig) -> Self
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
§Panics
- This method will panic if the
sdk_config
is missing an async sleep implementation. If you experience this panic, set thesleep_impl
on the Config passed into this function to fix it. - This method will panic if the
sdk_config
is missing an HTTP connector. If you experience this panic, set thehttp_connector
on the Config passed into this function to fix it. - This method will panic if no
BehaviorVersion
is provided. If you experience this panic, setbehavior_version
on the Config or enable thebehavior-version-latest
Cargo feature.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more