Struct aws_sdk_rolesanywhere::client::Client
source · pub struct Client { /* private fields */ }
Expand description
Client for IAM Roles Anywhere
Client for invoking operations on IAM Roles Anywhere. Each operation on IAM Roles Anywhere 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_rolesanywhere::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_rolesanywhere::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 ListTagsForResource
operation has
a Client::list_tags_for_resource
, 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.list_tags_for_resource()
.resource_arn("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_profile(&self) -> CreateProfileFluentBuilder
pub fn create_profile(&self) -> CreateProfileFluentBuilder
Constructs a fluent builder for the CreateProfile
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the profile.
require_instance_properties(bool)
/set_require_instance_properties(Option<bool>)
:
required: falseSpecifies whether instance properties are required in temporary credential requests with this profile.
session_policy(impl Into<String>)
/set_session_policy(Option<String>)
:
required: falseA session policy that applies to the trust boundary of the vended session credentials.
role_arns(impl Into<String>)
/set_role_arns(Option<Vec::<String>>)
:
required: trueA list of IAM roles that this profile can assume in a temporary credential request.
managed_policy_arns(impl Into<String>)
/set_managed_policy_arns(Option<Vec::<String>>)
:
required: falseA list of managed policy ARNs that apply to the vended session credentials.
duration_seconds(i32)
/set_duration_seconds(Option<i32>)
:
required: falseUsed to determine how long sessions vended using this profile are valid for. See the
Expiration
section of the CreateSession API documentation page for more details. In requests, if this value is not provided, the default value will be 3600.enabled(bool)
/set_enabled(Option<bool>)
:
required: falseSpecifies whether the profile is enabled.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseThe tags to attach to the profile.
- On success, responds with
CreateProfileOutput
with field(s):profile(Option<ProfileDetail>)
:The state of the profile after a read or write operation.
- On failure, responds with
SdkError<CreateProfileError>
source§impl Client
impl Client
sourcepub fn create_trust_anchor(&self) -> CreateTrustAnchorFluentBuilder
pub fn create_trust_anchor(&self) -> CreateTrustAnchorFluentBuilder
Constructs a fluent builder for the CreateTrustAnchor
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the trust anchor.
source(Source)
/set_source(Option<Source>)
:
required: trueThe trust anchor type and its related certificate data.
enabled(bool)
/set_enabled(Option<bool>)
:
required: falseSpecifies whether the trust anchor is enabled.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseThe tags to attach to the trust anchor.
notification_settings(NotificationSetting)
/set_notification_settings(Option<Vec::<NotificationSetting>>)
:
required: falseA list of notification settings to be associated to the trust anchor.
- On success, responds with
CreateTrustAnchorOutput
with field(s):trust_anchor(Option<TrustAnchorDetail>)
:The state of the trust anchor after a read or write operation.
- On failure, responds with
SdkError<CreateTrustAnchorError>
source§impl Client
impl Client
sourcepub fn delete_attribute_mapping(&self) -> DeleteAttributeMappingFluentBuilder
pub fn delete_attribute_mapping(&self) -> DeleteAttributeMappingFluentBuilder
Constructs a fluent builder for the DeleteAttributeMapping
operation.
- The fluent builder is configurable:
profile_id(impl Into<String>)
/set_profile_id(Option<String>)
:
required: trueThe unique identifier of the profile.
certificate_field(CertificateField)
/set_certificate_field(Option<CertificateField>)
:
required: trueFields (x509Subject, x509Issuer and x509SAN) within X.509 certificates.
specifiers(impl Into<String>)
/set_specifiers(Option<Vec::<String>>)
:
required: falseA list of specifiers of a certificate field; for example, CN, OU, UID from a Subject.
- On success, responds with
DeleteAttributeMappingOutput
with field(s):profile(Option<ProfileDetail>)
:The state of the profile after a read or write operation.
- On failure, responds with
SdkError<DeleteAttributeMappingError>
source§impl Client
impl Client
sourcepub fn delete_crl(&self) -> DeleteCrlFluentBuilder
pub fn delete_crl(&self) -> DeleteCrlFluentBuilder
Constructs a fluent builder for the DeleteCrl
operation.
- The fluent builder is configurable:
crl_id(impl Into<String>)
/set_crl_id(Option<String>)
:
required: trueThe unique identifier of the certificate revocation list (CRL).
- On success, responds with
DeleteCrlOutput
with field(s):crl(Option<CrlDetail>)
:The state of the certificate revocation list (CRL) after a read or write operation.
- On failure, responds with
SdkError<DeleteCrlError>
source§impl Client
impl Client
sourcepub fn delete_profile(&self) -> DeleteProfileFluentBuilder
pub fn delete_profile(&self) -> DeleteProfileFluentBuilder
Constructs a fluent builder for the DeleteProfile
operation.
- The fluent builder is configurable:
profile_id(impl Into<String>)
/set_profile_id(Option<String>)
:
required: trueThe unique identifier of the profile.
- On success, responds with
DeleteProfileOutput
with field(s):profile(Option<ProfileDetail>)
:The state of the profile after a read or write operation.
- On failure, responds with
SdkError<DeleteProfileError>
source§impl Client
impl Client
sourcepub fn delete_trust_anchor(&self) -> DeleteTrustAnchorFluentBuilder
pub fn delete_trust_anchor(&self) -> DeleteTrustAnchorFluentBuilder
Constructs a fluent builder for the DeleteTrustAnchor
operation.
- The fluent builder is configurable:
trust_anchor_id(impl Into<String>)
/set_trust_anchor_id(Option<String>)
:
required: trueThe unique identifier of the trust anchor.
- On success, responds with
DeleteTrustAnchorOutput
with field(s):trust_anchor(Option<TrustAnchorDetail>)
:The state of the trust anchor after a read or write operation.
- On failure, responds with
SdkError<DeleteTrustAnchorError>
source§impl Client
impl Client
sourcepub fn disable_crl(&self) -> DisableCrlFluentBuilder
pub fn disable_crl(&self) -> DisableCrlFluentBuilder
Constructs a fluent builder for the DisableCrl
operation.
- The fluent builder is configurable:
crl_id(impl Into<String>)
/set_crl_id(Option<String>)
:
required: trueThe unique identifier of the certificate revocation list (CRL).
- On success, responds with
DisableCrlOutput
with field(s):crl(Option<CrlDetail>)
:The state of the certificate revocation list (CRL) after a read or write operation.
- On failure, responds with
SdkError<DisableCrlError>
source§impl Client
impl Client
sourcepub fn disable_profile(&self) -> DisableProfileFluentBuilder
pub fn disable_profile(&self) -> DisableProfileFluentBuilder
Constructs a fluent builder for the DisableProfile
operation.
- The fluent builder is configurable:
profile_id(impl Into<String>)
/set_profile_id(Option<String>)
:
required: trueThe unique identifier of the profile.
- On success, responds with
DisableProfileOutput
with field(s):profile(Option<ProfileDetail>)
:The state of the profile after a read or write operation.
- On failure, responds with
SdkError<DisableProfileError>
source§impl Client
impl Client
sourcepub fn disable_trust_anchor(&self) -> DisableTrustAnchorFluentBuilder
pub fn disable_trust_anchor(&self) -> DisableTrustAnchorFluentBuilder
Constructs a fluent builder for the DisableTrustAnchor
operation.
- The fluent builder is configurable:
trust_anchor_id(impl Into<String>)
/set_trust_anchor_id(Option<String>)
:
required: trueThe unique identifier of the trust anchor.
- On success, responds with
DisableTrustAnchorOutput
with field(s):trust_anchor(Option<TrustAnchorDetail>)
:The state of the trust anchor after a read or write operation.
- On failure, responds with
SdkError<DisableTrustAnchorError>
source§impl Client
impl Client
sourcepub fn enable_crl(&self) -> EnableCrlFluentBuilder
pub fn enable_crl(&self) -> EnableCrlFluentBuilder
Constructs a fluent builder for the EnableCrl
operation.
- The fluent builder is configurable:
crl_id(impl Into<String>)
/set_crl_id(Option<String>)
:
required: trueThe unique identifier of the certificate revocation list (CRL).
- On success, responds with
EnableCrlOutput
with field(s):crl(Option<CrlDetail>)
:The state of the certificate revocation list (CRL) after a read or write operation.
- On failure, responds with
SdkError<EnableCrlError>
source§impl Client
impl Client
sourcepub fn enable_profile(&self) -> EnableProfileFluentBuilder
pub fn enable_profile(&self) -> EnableProfileFluentBuilder
Constructs a fluent builder for the EnableProfile
operation.
- The fluent builder is configurable:
profile_id(impl Into<String>)
/set_profile_id(Option<String>)
:
required: trueThe unique identifier of the profile.
- On success, responds with
EnableProfileOutput
with field(s):profile(Option<ProfileDetail>)
:The state of the profile after a read or write operation.
- On failure, responds with
SdkError<EnableProfileError>
source§impl Client
impl Client
sourcepub fn enable_trust_anchor(&self) -> EnableTrustAnchorFluentBuilder
pub fn enable_trust_anchor(&self) -> EnableTrustAnchorFluentBuilder
Constructs a fluent builder for the EnableTrustAnchor
operation.
- The fluent builder is configurable:
trust_anchor_id(impl Into<String>)
/set_trust_anchor_id(Option<String>)
:
required: trueThe unique identifier of the trust anchor.
- On success, responds with
EnableTrustAnchorOutput
with field(s):trust_anchor(Option<TrustAnchorDetail>)
:The state of the trust anchor after a read or write operation.
- On failure, responds with
SdkError<EnableTrustAnchorError>
source§impl Client
impl Client
sourcepub fn get_crl(&self) -> GetCrlFluentBuilder
pub fn get_crl(&self) -> GetCrlFluentBuilder
Constructs a fluent builder for the GetCrl
operation.
- The fluent builder is configurable:
crl_id(impl Into<String>)
/set_crl_id(Option<String>)
:
required: trueThe unique identifier of the certificate revocation list (CRL).
- On success, responds with
GetCrlOutput
with field(s):crl(Option<CrlDetail>)
:The state of the certificate revocation list (CRL) after a read or write operation.
- On failure, responds with
SdkError<GetCrlError>
source§impl Client
impl Client
sourcepub fn get_profile(&self) -> GetProfileFluentBuilder
pub fn get_profile(&self) -> GetProfileFluentBuilder
Constructs a fluent builder for the GetProfile
operation.
- The fluent builder is configurable:
profile_id(impl Into<String>)
/set_profile_id(Option<String>)
:
required: trueThe unique identifier of the profile.
- On success, responds with
GetProfileOutput
with field(s):profile(Option<ProfileDetail>)
:The state of the profile after a read or write operation.
- On failure, responds with
SdkError<GetProfileError>
source§impl Client
impl Client
sourcepub fn get_subject(&self) -> GetSubjectFluentBuilder
pub fn get_subject(&self) -> GetSubjectFluentBuilder
Constructs a fluent builder for the GetSubject
operation.
- The fluent builder is configurable:
subject_id(impl Into<String>)
/set_subject_id(Option<String>)
:
required: trueThe unique identifier of the subject.
- On success, responds with
GetSubjectOutput
with field(s):subject(Option<SubjectDetail>)
:The state of the subject after a read or write operation.
- On failure, responds with
SdkError<GetSubjectError>
source§impl Client
impl Client
sourcepub fn get_trust_anchor(&self) -> GetTrustAnchorFluentBuilder
pub fn get_trust_anchor(&self) -> GetTrustAnchorFluentBuilder
Constructs a fluent builder for the GetTrustAnchor
operation.
- The fluent builder is configurable:
trust_anchor_id(impl Into<String>)
/set_trust_anchor_id(Option<String>)
:
required: trueThe unique identifier of the trust anchor.
- On success, responds with
GetTrustAnchorOutput
with field(s):trust_anchor(Option<TrustAnchorDetail>)
:The state of the trust anchor after a read or write operation.
- On failure, responds with
SdkError<GetTrustAnchorError>
source§impl Client
impl Client
sourcepub fn import_crl(&self) -> ImportCrlFluentBuilder
pub fn import_crl(&self) -> ImportCrlFluentBuilder
Constructs a fluent builder for the ImportCrl
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the certificate revocation list (CRL).
crl_data(Blob)
/set_crl_data(Option<Blob>)
:
required: trueThe x509 v3 specified certificate revocation list (CRL).
enabled(bool)
/set_enabled(Option<bool>)
:
required: falseSpecifies whether the certificate revocation list (CRL) is enabled.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseA list of tags to attach to the certificate revocation list (CRL).
trust_anchor_arn(impl Into<String>)
/set_trust_anchor_arn(Option<String>)
:
required: trueThe ARN of the TrustAnchor the certificate revocation list (CRL) will provide revocation for.
- On success, responds with
ImportCrlOutput
with field(s):crl(Option<CrlDetail>)
:The state of the certificate revocation list (CRL) after a read or write operation.
- On failure, responds with
SdkError<ImportCrlError>
source§impl Client
impl Client
sourcepub fn list_crls(&self) -> ListCrlsFluentBuilder
pub fn list_crls(&self) -> ListCrlsFluentBuilder
Constructs a fluent builder for the ListCrls
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseA token that indicates where the output should continue from, if a previous request did not show all results. To get the next results, make the request again with this value.
page_size(i32)
/set_page_size(Option<i32>)
:
required: falseThe number of resources in the paginated list.
- On success, responds with
ListCrlsOutput
with field(s):next_token(Option<String>)
:A token that indicates where the output should continue from, if a previous request did not show all results. To get the next results, make the request again with this value.
crls(Option<Vec::<CrlDetail>>)
:A list of certificate revocation lists (CRL).
- On failure, responds with
SdkError<ListCrlsError>
source§impl Client
impl Client
sourcepub fn list_profiles(&self) -> ListProfilesFluentBuilder
pub fn list_profiles(&self) -> ListProfilesFluentBuilder
Constructs a fluent builder for the ListProfiles
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseA token that indicates where the output should continue from, if a previous request did not show all results. To get the next results, make the request again with this value.
page_size(i32)
/set_page_size(Option<i32>)
:
required: falseThe number of resources in the paginated list.
- On success, responds with
ListProfilesOutput
with field(s):next_token(Option<String>)
:A token that indicates where the output should continue from, if a previous request did not show all results. To get the next results, make the request again with this value.
profiles(Option<Vec::<ProfileDetail>>)
:A list of profiles.
- On failure, responds with
SdkError<ListProfilesError>
source§impl Client
impl Client
sourcepub fn list_subjects(&self) -> ListSubjectsFluentBuilder
pub fn list_subjects(&self) -> ListSubjectsFluentBuilder
Constructs a fluent builder for the ListSubjects
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseA token that indicates where the output should continue from, if a previous request did not show all results. To get the next results, make the request again with this value.
page_size(i32)
/set_page_size(Option<i32>)
:
required: falseThe number of resources in the paginated list.
- On success, responds with
ListSubjectsOutput
with field(s):subjects(Option<Vec::<SubjectSummary>>)
:A list of subjects.
next_token(Option<String>)
:A token that indicates where the output should continue from, if a previous request did not show all results. To get the next results, make the request again with this value.
- On failure, responds with
SdkError<ListSubjectsError>
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 ARN of the resource.
- On success, responds with
ListTagsForResourceOutput
with field(s):tags(Option<Vec::<Tag>>)
:A list of tags attached to the resource.
- On failure, responds with
SdkError<ListTagsForResourceError>
source§impl Client
impl Client
sourcepub fn list_trust_anchors(&self) -> ListTrustAnchorsFluentBuilder
pub fn list_trust_anchors(&self) -> ListTrustAnchorsFluentBuilder
Constructs a fluent builder for the ListTrustAnchors
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseA token that indicates where the output should continue from, if a previous request did not show all results. To get the next results, make the request again with this value.
page_size(i32)
/set_page_size(Option<i32>)
:
required: falseThe number of resources in the paginated list.
- On success, responds with
ListTrustAnchorsOutput
with field(s):next_token(Option<String>)
:A token that indicates where the output should continue from, if a previous request did not show all results. To get the next results, make the request again with this value.
trust_anchors(Option<Vec::<TrustAnchorDetail>>)
:A list of trust anchors.
- On failure, responds with
SdkError<ListTrustAnchorsError>
source§impl Client
impl Client
sourcepub fn put_attribute_mapping(&self) -> PutAttributeMappingFluentBuilder
pub fn put_attribute_mapping(&self) -> PutAttributeMappingFluentBuilder
Constructs a fluent builder for the PutAttributeMapping
operation.
- The fluent builder is configurable:
profile_id(impl Into<String>)
/set_profile_id(Option<String>)
:
required: trueThe unique identifier of the profile.
certificate_field(CertificateField)
/set_certificate_field(Option<CertificateField>)
:
required: trueFields (x509Subject, x509Issuer and x509SAN) within X.509 certificates.
mapping_rules(MappingRule)
/set_mapping_rules(Option<Vec::<MappingRule>>)
:
required: trueA list of mapping entries for every supported specifier or sub-field.
- On success, responds with
PutAttributeMappingOutput
with field(s):profile(Option<ProfileDetail>)
:The state of the profile after a read or write operation.
- On failure, responds with
SdkError<PutAttributeMappingError>
source§impl Client
impl Client
sourcepub fn put_notification_settings(&self) -> PutNotificationSettingsFluentBuilder
pub fn put_notification_settings(&self) -> PutNotificationSettingsFluentBuilder
Constructs a fluent builder for the PutNotificationSettings
operation.
- The fluent builder is configurable:
trust_anchor_id(impl Into<String>)
/set_trust_anchor_id(Option<String>)
:
required: trueThe unique identifier of the trust anchor.
notification_settings(NotificationSetting)
/set_notification_settings(Option<Vec::<NotificationSetting>>)
:
required: trueA list of notification settings to be associated to the trust anchor.
- On success, responds with
PutNotificationSettingsOutput
with field(s):trust_anchor(Option<TrustAnchorDetail>)
:The state of the trust anchor after a read or write operation.
- On failure, responds with
SdkError<PutNotificationSettingsError>
source§impl Client
impl Client
sourcepub fn reset_notification_settings(
&self
) -> ResetNotificationSettingsFluentBuilder
pub fn reset_notification_settings( &self ) -> ResetNotificationSettingsFluentBuilder
Constructs a fluent builder for the ResetNotificationSettings
operation.
- The fluent builder is configurable:
trust_anchor_id(impl Into<String>)
/set_trust_anchor_id(Option<String>)
:
required: trueThe unique identifier of the trust anchor.
notification_setting_keys(NotificationSettingKey)
/set_notification_setting_keys(Option<Vec::<NotificationSettingKey>>)
:
required: trueA list of notification setting keys to reset. A notification setting key includes the event and the channel.
- On success, responds with
ResetNotificationSettingsOutput
with field(s):trust_anchor(Option<TrustAnchorDetail>)
:The state of the trust anchor after a read or write operation.
- On failure, responds with
SdkError<ResetNotificationSettingsError>
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 ARN of the resource.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: trueThe tags to attach 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 ARN of the resource.
tag_keys(impl Into<String>)
/set_tag_keys(Option<Vec::<String>>)
:
required: trueA list of keys. Tag keys are the unique identifiers of tags.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
source§impl Client
impl Client
sourcepub fn update_crl(&self) -> UpdateCrlFluentBuilder
pub fn update_crl(&self) -> UpdateCrlFluentBuilder
Constructs a fluent builder for the UpdateCrl
operation.
- The fluent builder is configurable:
crl_id(impl Into<String>)
/set_crl_id(Option<String>)
:
required: trueThe unique identifier of the certificate revocation list (CRL).
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseThe name of the Crl.
crl_data(Blob)
/set_crl_data(Option<Blob>)
:
required: falseThe x509 v3 specified certificate revocation list (CRL).
- On success, responds with
UpdateCrlOutput
with field(s):crl(Option<CrlDetail>)
:The state of the certificate revocation list (CRL) after a read or write operation.
- On failure, responds with
SdkError<UpdateCrlError>
source§impl Client
impl Client
sourcepub fn update_profile(&self) -> UpdateProfileFluentBuilder
pub fn update_profile(&self) -> UpdateProfileFluentBuilder
Constructs a fluent builder for the UpdateProfile
operation.
- The fluent builder is configurable:
profile_id(impl Into<String>)
/set_profile_id(Option<String>)
:
required: trueThe unique identifier of the profile.
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseThe name of the profile.
session_policy(impl Into<String>)
/set_session_policy(Option<String>)
:
required: falseA session policy that applies to the trust boundary of the vended session credentials.
role_arns(impl Into<String>)
/set_role_arns(Option<Vec::<String>>)
:
required: falseA list of IAM roles that this profile can assume in a temporary credential request.
managed_policy_arns(impl Into<String>)
/set_managed_policy_arns(Option<Vec::<String>>)
:
required: falseA list of managed policy ARNs that apply to the vended session credentials.
duration_seconds(i32)
/set_duration_seconds(Option<i32>)
:
required: falseUsed to determine how long sessions vended using this profile are valid for. See the
Expiration
section of the CreateSession API documentation page for more details. In requests, if this value is not provided, the default value will be 3600.
- On success, responds with
UpdateProfileOutput
with field(s):profile(Option<ProfileDetail>)
:The state of the profile after a read or write operation.
- On failure, responds with
SdkError<UpdateProfileError>
source§impl Client
impl Client
sourcepub fn update_trust_anchor(&self) -> UpdateTrustAnchorFluentBuilder
pub fn update_trust_anchor(&self) -> UpdateTrustAnchorFluentBuilder
Constructs a fluent builder for the UpdateTrustAnchor
operation.
- The fluent builder is configurable:
trust_anchor_id(impl Into<String>)
/set_trust_anchor_id(Option<String>)
:
required: trueThe unique identifier of the trust anchor.
name(impl Into<String>)
/set_name(Option<String>)
:
required: falseThe name of the trust anchor.
source(Source)
/set_source(Option<Source>)
:
required: falseThe trust anchor type and its related certificate data.
- On success, responds with
UpdateTrustAnchorOutput
with field(s):trust_anchor(Option<TrustAnchorDetail>)
:The state of the trust anchor after a read or write operation.
- On failure, responds with
SdkError<UpdateTrustAnchorError>
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