pub struct Client { /* private fields */ }
Expand description
Client for Amazon Bedrock Agent Core Control Plane Fronting Layer
Client for invoking operations on Amazon Bedrock Agent Core Control Plane Fronting Layer. Each operation on Amazon Bedrock Agent Core Control Plane Fronting Layer 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_bedrockagentcorecontrol::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 Builder
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_bedrockagentcorecontrol::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 CreateAgentRuntime
operation has
a Client::create_agent_runtime
, 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_agent_runtime()
.agent_runtime_name("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.
§Waiters
This client provides wait_until
methods behind the Waiters
trait.
To use them, simply import the trait, and then call one of the wait_until
methods. This will
return a waiter fluent builder that takes various parameters, which are documented on the builder
type. Once parameters have been provided, the wait
method can be called to initiate waiting.
For example, if there was a wait_until_thing
method, it could look like:
let result = client.wait_until_thing()
.thing_id("someId")
.wait(Duration::from_secs(120))
.await;
Implementations§
Source§impl Client
impl Client
Sourcepub fn create_agent_runtime(&self) -> CreateAgentRuntimeFluentBuilder
pub fn create_agent_runtime(&self) -> CreateAgentRuntimeFluentBuilder
Constructs a fluent builder for the CreateAgentRuntime
operation.
- The fluent builder is configurable:
agent_runtime_name(impl Into<String>)
/set_agent_runtime_name(Option<String>)
:
required: trueThe name of the secure agent.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe description of the agent runtime.
agent_runtime_artifact(AgentArtifact)
/set_agent_runtime_artifact(Option<AgentArtifact>)
:
required: trueThe artifact of the agent.
role_arn(impl Into<String>)
/set_role_arn(Option<String>)
:
required: trueThe IAM role ARN that provides permissions for the agent runtime.
network_configuration(NetworkConfiguration)
/set_network_configuration(Option<NetworkConfiguration>)
:
required: trueThe network configuration for the agent runtime.
protocol_configuration(ProtocolConfiguration)
/set_protocol_configuration(Option<ProtocolConfiguration>)
:
required: falseThe protocol configuration for an agent runtime. This structure defines how the agent runtime communicates with clients.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseA unique, case-sensitive identifier to ensure idempotency of the request.
environment_variables(impl Into<String>, impl Into<String>)
/set_environment_variables(Option<HashMap::<String, String>>)
:
required: falseEnvironment variables to set in the agent runtime environment.
authorizer_configuration(AuthorizerConfiguration)
/set_authorizer_configuration(Option<AuthorizerConfiguration>)
:
required: falseThe authorizer configuration for the agent runtime.
- On success, responds with
CreateAgentRuntimeOutput
with field(s):agent_runtime_arn(String)
:The Amazon Resource Name (ARN) of the agent runtime.
workload_identity_details(Option<WorkloadIdentityDetails>)
:The workload identity details for the agent runtime.
agent_runtime_id(String)
:The unique identifier of the agent runtime.
agent_runtime_version(String)
:The version of the agent runtime.
created_at(DateTime)
:The timestamp when the agent runtime was created.
status(AgentStatus)
:The current status of the agent runtime.
- On failure, responds with
SdkError<CreateAgentRuntimeError>
Source§impl Client
impl Client
Sourcepub fn create_agent_runtime_endpoint(
&self,
) -> CreateAgentRuntimeEndpointFluentBuilder
pub fn create_agent_runtime_endpoint( &self, ) -> CreateAgentRuntimeEndpointFluentBuilder
Constructs a fluent builder for the CreateAgentRuntimeEndpoint
operation.
- The fluent builder is configurable:
agent_runtime_id(impl Into<String>)
/set_agent_runtime_id(Option<String>)
:
required: trueThe unique identifier of the agent runtime to create an endpoint for.
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the agent runtime endpoint.
agent_runtime_version(impl Into<String>)
/set_agent_runtime_version(Option<String>)
:
required: falseThe version of the agent runtime to use for the endpoint.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe description of the agent runtime endpoint.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseA unique, case-sensitive identifier to ensure idempotency of the request.
- On success, responds with
CreateAgentRuntimeEndpointOutput
with field(s):target_version(String)
:The target version of the agent runtime for the endpoint.
agent_runtime_endpoint_arn(String)
:The Amazon Resource Name (ARN) of the agent runtime endpoint.
agent_runtime_arn(String)
:The Amazon Resource Name (ARN) of the agent runtime.
status(AgentEndpointStatus)
:The current status of the agent runtime endpoint.
created_at(DateTime)
:The timestamp when the agent runtime endpoint was created.
- On failure, responds with
SdkError<CreateAgentRuntimeEndpointError>
Source§impl Client
impl Client
Sourcepub fn create_api_key_credential_provider(
&self,
) -> CreateApiKeyCredentialProviderFluentBuilder
pub fn create_api_key_credential_provider( &self, ) -> CreateApiKeyCredentialProviderFluentBuilder
Constructs a fluent builder for the CreateApiKeyCredentialProvider
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the API key credential provider. The name must be unique within your account.
api_key(impl Into<String>)
/set_api_key(Option<String>)
:
required: trueThe API key to use for authentication. This value is encrypted and stored securely.
- On success, responds with
CreateApiKeyCredentialProviderOutput
with field(s):api_key_secret_arn(Option<Secret>)
:The Amazon Resource Name (ARN) of the secret containing the API key.
name(String)
:The name of the created API key credential provider.
credential_provider_arn(String)
:The Amazon Resource Name (ARN) of the created API key credential provider.
- On failure, responds with
SdkError<CreateApiKeyCredentialProviderError>
Source§impl Client
impl Client
Sourcepub fn create_browser(&self) -> CreateBrowserFluentBuilder
pub fn create_browser(&self) -> CreateBrowserFluentBuilder
Constructs a fluent builder for the CreateBrowser
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the browser. The name must be unique within your account.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe description of the browser.
execution_role_arn(impl Into<String>)
/set_execution_role_arn(Option<String>)
:
required: falseThe Amazon Resource Name (ARN) of the IAM role that provides permissions for the browser to access Amazon Web Services services.
network_configuration(BrowserNetworkConfiguration)
/set_network_configuration(Option<BrowserNetworkConfiguration>)
:
required: trueThe network configuration for the browser. This configuration specifies the network mode for the browser.
recording(RecordingConfig)
/set_recording(Option<RecordingConfig>)
:
required: falseThe recording configuration for the browser. When enabled, browser sessions are recorded and stored in the specified Amazon S3 location.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseA unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request but does not return an error.
- On success, responds with
CreateBrowserOutput
with field(s):browser_id(String)
:The unique identifier of the created browser.
browser_arn(String)
:The Amazon Resource Name (ARN) of the created browser.
created_at(DateTime)
:The timestamp when the browser was created.
status(BrowserStatus)
:The current status of the browser.
- On failure, responds with
SdkError<CreateBrowserError>
Source§impl Client
impl Client
Sourcepub fn create_code_interpreter(&self) -> CreateCodeInterpreterFluentBuilder
pub fn create_code_interpreter(&self) -> CreateCodeInterpreterFluentBuilder
Constructs a fluent builder for the CreateCodeInterpreter
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the code interpreter. The name must be unique within your account.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe description of the code interpreter.
execution_role_arn(impl Into<String>)
/set_execution_role_arn(Option<String>)
:
required: falseThe Amazon Resource Name (ARN) of the IAM role that provides permissions for the code interpreter to access Amazon Web Services services.
network_configuration(CodeInterpreterNetworkConfiguration)
/set_network_configuration(Option<CodeInterpreterNetworkConfiguration>)
:
required: trueThe network configuration for the code interpreter. This configuration specifies the network mode for the code interpreter.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseA unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request but does not return an error.
- On success, responds with
CreateCodeInterpreterOutput
with field(s):code_interpreter_id(String)
:The unique identifier of the created code interpreter.
code_interpreter_arn(String)
:The Amazon Resource Name (ARN) of the created code interpreter.
created_at(DateTime)
:The timestamp when the code interpreter was created.
status(CodeInterpreterStatus)
:The current status of the code interpreter.
- On failure, responds with
SdkError<CreateCodeInterpreterError>
Source§impl Client
impl Client
Sourcepub fn create_gateway(&self) -> CreateGatewayFluentBuilder
pub fn create_gateway(&self) -> CreateGatewayFluentBuilder
Constructs a fluent builder for the CreateGateway
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the gateway. The name must be unique within your account.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe description of the gateway.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseA unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request but does not return an error.
role_arn(impl Into<String>)
/set_role_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the IAM role that provides permissions for the gateway to access Amazon Web Services services.
protocol_type(GatewayProtocolType)
/set_protocol_type(Option<GatewayProtocolType>)
:
required: trueThe protocol type for the gateway. Currently supports MCP (Model Context Protocol).
protocol_configuration(GatewayProtocolConfiguration)
/set_protocol_configuration(Option<GatewayProtocolConfiguration>)
:
required: falseThe configuration settings for the protocol specified in the protocolType parameter.
authorizer_type(AuthorizerType)
/set_authorizer_type(Option<AuthorizerType>)
:
required: trueThe type of authorizer to use for the gateway.
authorizer_configuration(AuthorizerConfiguration)
/set_authorizer_configuration(Option<AuthorizerConfiguration>)
:
required: trueThe authorizer configuration for the Gateway.
kms_key_arn(impl Into<String>)
/set_kms_key_arn(Option<String>)
:
required: falseThe Amazon Resource Name (ARN) of the KMS key used to encrypt data associated with the gateway.
exception_level(ExceptionLevel)
/set_exception_level(Option<ExceptionLevel>)
:
required: falseThe verbosity of exception messages. Use DEBUG mode to see granular exception messages from a Gateway. If this parameter is not set, exception messages are by default sanitized for presentation to end users.
- On success, responds with
CreateGatewayOutput
with field(s):gateway_arn(String)
:The Amazon Resource Name (ARN) of the created gateway.
gateway_id(String)
:The unique identifier of the created gateway.
gateway_url(Option<String>)
:The URL endpoint for the created gateway.
created_at(DateTime)
:The timestamp when the gateway was created.
updated_at(DateTime)
:The timestamp when the gateway was last updated.
status(GatewayStatus)
:The current status of the gateway.
status_reasons(Option<Vec::<String>>)
:The reasons for the current status of the gateway.
name(String)
:The name of the gateway.
description(Option<String>)
:The description of the gateway.
role_arn(Option<String>)
:The Amazon Resource Name (ARN) of the IAM role associated with the gateway.
protocol_type(GatewayProtocolType)
:The protocol type of the gateway.
protocol_configuration(Option<GatewayProtocolConfiguration>)
:The configuration settings for the protocol used by the gateway.
authorizer_type(AuthorizerType)
:The type of authorizer used by the gateway.
authorizer_configuration(Option<AuthorizerConfiguration>)
:The authorizer configuration for the created Gateway.
kms_key_arn(Option<String>)
:The Amazon Resource Name (ARN) of the KMS key used to encrypt data associated with the gateway.
workload_identity_details(Option<WorkloadIdentityDetails>)
:The workload identity details for the created Gateway.
exception_level(Option<ExceptionLevel>)
:The verbosity of exception messages. Use DEBUG mode to see granular exception messages from a Gateway. If this parameter is not set, exception messages are by default sanitized for presentation to end users.
- On failure, responds with
SdkError<CreateGatewayError>
Source§impl Client
impl Client
Sourcepub fn create_gateway_target(&self) -> CreateGatewayTargetFluentBuilder
pub fn create_gateway_target(&self) -> CreateGatewayTargetFluentBuilder
Constructs a fluent builder for the CreateGatewayTarget
operation.
- The fluent builder is configurable:
gateway_identifier(impl Into<String>)
/set_gateway_identifier(Option<String>)
:
required: trueThe identifier of the gateway to create a target for. This can be either the gateway ID or the gateway ARN.
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the gateway target. The name must be unique within the gateway.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe description of the gateway target.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseA unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request but does not return an error.
target_configuration(TargetConfiguration)
/set_target_configuration(Option<TargetConfiguration>)
:
required: trueThe configuration settings for the target, including endpoint information and schema definitions.
credential_provider_configurations(CredentialProviderConfiguration)
/set_credential_provider_configurations(Option<Vec::<CredentialProviderConfiguration>>)
:
required: trueThe credential provider configurations for the target. These configurations specify how the gateway authenticates with the target endpoint.
- On success, responds with
CreateGatewayTargetOutput
with field(s):gateway_arn(String)
:The Amazon Resource Name (ARN) of the gateway.
target_id(String)
:The unique identifier of the created target.
created_at(DateTime)
:The timestamp when the target was created.
updated_at(DateTime)
:The timestamp when the target was last updated.
status(TargetStatus)
:The current status of the target.
status_reasons(Option<Vec::<String>>)
:The reasons for the current status of the target.
name(String)
:The name of the target.
description(Option<String>)
:The description of the target.
target_configuration(Option<TargetConfiguration>)
:The configuration settings for the target.
credential_provider_configurations(Vec::<CredentialProviderConfiguration>)
:The credential provider configurations for the target.
- On failure, responds with
SdkError<CreateGatewayTargetError>
Source§impl Client
impl Client
Sourcepub fn create_memory(&self) -> CreateMemoryFluentBuilder
pub fn create_memory(&self) -> CreateMemoryFluentBuilder
Constructs a fluent builder for the CreateMemory
operation.
- The fluent builder is configurable:
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseA unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request but does not return an error.
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the memory. The name must be unique within your account.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe description of the memory.
encryption_key_arn(impl Into<String>)
/set_encryption_key_arn(Option<String>)
:
required: falseThe Amazon Resource Name (ARN) of the KMS key used to encrypt the memory data.
memory_execution_role_arn(impl Into<String>)
/set_memory_execution_role_arn(Option<String>)
:
required: falseThe Amazon Resource Name (ARN) of the IAM role that provides permissions for the memory to access Amazon Web Services services.
event_expiry_duration(i32)
/set_event_expiry_duration(Option<i32>)
:
required: trueThe duration after which memory events expire. Specified as an ISO 8601 duration.
memory_strategies(MemoryStrategyInput)
/set_memory_strategies(Option<Vec::<MemoryStrategyInput>>)
:
required: falseThe memory strategies to use for this memory. Strategies define how information is extracted, processed, and consolidated.
- On success, responds with
CreateMemoryOutput
with field(s):memory(Option<Memory>)
:The details of the created memory, including its ID, ARN, name, description, and configuration settings.
- On failure, responds with
SdkError<CreateMemoryError>
Source§impl Client
impl Client
Sourcepub fn create_oauth2_credential_provider(
&self,
) -> CreateOauth2CredentialProviderFluentBuilder
pub fn create_oauth2_credential_provider( &self, ) -> CreateOauth2CredentialProviderFluentBuilder
Constructs a fluent builder for the CreateOauth2CredentialProvider
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the OAuth2 credential provider. The name must be unique within your account.
credential_provider_vendor(CredentialProviderVendorType)
/set_credential_provider_vendor(Option<CredentialProviderVendorType>)
:
required: trueThe vendor of the OAuth2 credential provider. This specifies which OAuth2 implementation to use.
oauth2_provider_config_input(Oauth2ProviderConfigInput)
/set_oauth2_provider_config_input(Option<Oauth2ProviderConfigInput>)
:
required: trueThe configuration settings for the OAuth2 provider, including client ID, client secret, and other vendor-specific settings.
- On success, responds with
CreateOauth2CredentialProviderOutput
with field(s):client_secret_arn(Option<Secret>)
:The Amazon Resource Name (ARN) of the client secret in AWS Secrets Manager.
name(String)
:The name of the OAuth2 credential provider.
credential_provider_arn(String)
:The Amazon Resource Name (ARN) of the OAuth2 credential provider.
- On failure, responds with
SdkError<CreateOauth2CredentialProviderError>
Source§impl Client
impl Client
Sourcepub fn create_workload_identity(&self) -> CreateWorkloadIdentityFluentBuilder
pub fn create_workload_identity(&self) -> CreateWorkloadIdentityFluentBuilder
Constructs a fluent builder for the CreateWorkloadIdentity
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the workload identity. The name must be unique within your account.
allowed_resource_oauth2_return_urls(impl Into<String>)
/set_allowed_resource_oauth2_return_urls(Option<Vec::<String>>)
:
required: falseThe list of allowed OAuth2 return URLs for resources associated with this workload identity.
- On success, responds with
CreateWorkloadIdentityOutput
with field(s):name(String)
:The name of the workload identity.
workload_identity_arn(String)
:The Amazon Resource Name (ARN) of the workload identity.
allowed_resource_oauth2_return_urls(Option<Vec::<String>>)
:The list of allowed OAuth2 return URLs for resources associated with this workload identity.
- On failure, responds with
SdkError<CreateWorkloadIdentityError>
Source§impl Client
impl Client
Sourcepub fn delete_agent_runtime(&self) -> DeleteAgentRuntimeFluentBuilder
pub fn delete_agent_runtime(&self) -> DeleteAgentRuntimeFluentBuilder
Constructs a fluent builder for the DeleteAgentRuntime
operation.
- The fluent builder is configurable:
agent_runtime_id(impl Into<String>)
/set_agent_runtime_id(Option<String>)
:
required: trueThe unique identifier of the agent runtime to delete.
- On success, responds with
DeleteAgentRuntimeOutput
with field(s):status(AgentStatus)
:The current status of the agent runtime deletion.
- On failure, responds with
SdkError<DeleteAgentRuntimeError>
Source§impl Client
impl Client
Sourcepub fn delete_agent_runtime_endpoint(
&self,
) -> DeleteAgentRuntimeEndpointFluentBuilder
pub fn delete_agent_runtime_endpoint( &self, ) -> DeleteAgentRuntimeEndpointFluentBuilder
Constructs a fluent builder for the DeleteAgentRuntimeEndpoint
operation.
- The fluent builder is configurable:
agent_runtime_id(impl Into<String>)
/set_agent_runtime_id(Option<String>)
:
required: trueThe unique identifier of the agent runtime associated with the endpoint.
endpoint_name(impl Into<String>)
/set_endpoint_name(Option<String>)
:
required: trueThe name of the agent runtime endpoint to delete.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseA unique, case-sensitive identifier to ensure idempotency of the request.
- On success, responds with
DeleteAgentRuntimeEndpointOutput
with field(s):status(AgentEndpointStatus)
:The current status of the agent runtime endpoint deletion.
- On failure, responds with
SdkError<DeleteAgentRuntimeEndpointError>
Source§impl Client
impl Client
Sourcepub fn delete_api_key_credential_provider(
&self,
) -> DeleteApiKeyCredentialProviderFluentBuilder
pub fn delete_api_key_credential_provider( &self, ) -> DeleteApiKeyCredentialProviderFluentBuilder
Constructs a fluent builder for the DeleteApiKeyCredentialProvider
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the API key credential provider to delete.
- On success, responds with
DeleteApiKeyCredentialProviderOutput
- On failure, responds with
SdkError<DeleteApiKeyCredentialProviderError>
Source§impl Client
impl Client
Sourcepub fn delete_browser(&self) -> DeleteBrowserFluentBuilder
pub fn delete_browser(&self) -> DeleteBrowserFluentBuilder
Constructs a fluent builder for the DeleteBrowser
operation.
- The fluent builder is configurable:
browser_id(impl Into<String>)
/set_browser_id(Option<String>)
:
required: trueThe unique identifier of the browser to delete.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseA unique, case-sensitive identifier to ensure idempotency of the request.
- On success, responds with
DeleteBrowserOutput
with field(s):browser_id(String)
:The unique identifier of the deleted browser.
status(BrowserStatus)
:The current status of the browser deletion.
last_updated_at(DateTime)
:The timestamp when the browser was last updated.
- On failure, responds with
SdkError<DeleteBrowserError>
Source§impl Client
impl Client
Sourcepub fn delete_code_interpreter(&self) -> DeleteCodeInterpreterFluentBuilder
pub fn delete_code_interpreter(&self) -> DeleteCodeInterpreterFluentBuilder
Constructs a fluent builder for the DeleteCodeInterpreter
operation.
- The fluent builder is configurable:
code_interpreter_id(impl Into<String>)
/set_code_interpreter_id(Option<String>)
:
required: trueThe unique identifier of the code interpreter to delete.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseA unique, case-sensitive identifier to ensure idempotency of the request.
- On success, responds with
DeleteCodeInterpreterOutput
with field(s):code_interpreter_id(String)
:The unique identifier of the deleted code interpreter.
status(CodeInterpreterStatus)
:The current status of the code interpreter deletion.
last_updated_at(DateTime)
:The timestamp when the code interpreter was last updated.
- On failure, responds with
SdkError<DeleteCodeInterpreterError>
Source§impl Client
impl Client
Sourcepub fn delete_gateway(&self) -> DeleteGatewayFluentBuilder
pub fn delete_gateway(&self) -> DeleteGatewayFluentBuilder
Constructs a fluent builder for the DeleteGateway
operation.
- The fluent builder is configurable:
gateway_identifier(impl Into<String>)
/set_gateway_identifier(Option<String>)
:
required: trueThe identifier of the gateway to delete. This can be either the gateway ID or the gateway ARN.
- On success, responds with
DeleteGatewayOutput
with field(s):gateway_id(String)
:The unique identifier of the deleted Gateway.
status(GatewayStatus)
:The current status of the Gateway deletion.
status_reasons(Option<Vec::<String>>)
:The reasons for the current status of the Gateway deletion.
- On failure, responds with
SdkError<DeleteGatewayError>
Source§impl Client
impl Client
Sourcepub fn delete_gateway_target(&self) -> DeleteGatewayTargetFluentBuilder
pub fn delete_gateway_target(&self) -> DeleteGatewayTargetFluentBuilder
Constructs a fluent builder for the DeleteGatewayTarget
operation.
- The fluent builder is configurable:
gateway_identifier(impl Into<String>)
/set_gateway_identifier(Option<String>)
:
required: trueThe unique identifier of the Gateway associated with the target.
target_id(impl Into<String>)
/set_target_id(Option<String>)
:
required: trueThe unique identifier of the Gateway Target to delete.
- On success, responds with
DeleteGatewayTargetOutput
with field(s):gateway_arn(String)
:The Amazon Resource Name (ARN) of the Gateway.
target_id(String)
:The unique identifier of the deleted Gateway Target.
status(TargetStatus)
:The current status of the Gateway Target deletion.
status_reasons(Option<Vec::<String>>)
:The reasons for the current status of the Gateway Target deletion.
- On failure, responds with
SdkError<DeleteGatewayTargetError>
Source§impl Client
impl Client
Sourcepub fn delete_memory(&self) -> DeleteMemoryFluentBuilder
pub fn delete_memory(&self) -> DeleteMemoryFluentBuilder
Constructs a fluent builder for the DeleteMemory
operation.
- The fluent builder is configurable:
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseA client token is used for keeping track of idempotent requests. It can contain a session id which can be around 250 chars, combined with a unique AWS identifier.
memory_id(impl Into<String>)
/set_memory_id(Option<String>)
:
required: trueThe unique identifier of the memory to delete.
- On success, responds with
DeleteMemoryOutput
with field(s):memory_id(String)
:The unique identifier of the deleted memory.
status(Option<MemoryStatus>)
:The current status of the memory deletion.
- On failure, responds with
SdkError<DeleteMemoryError>
Source§impl Client
impl Client
Sourcepub fn delete_oauth2_credential_provider(
&self,
) -> DeleteOauth2CredentialProviderFluentBuilder
pub fn delete_oauth2_credential_provider( &self, ) -> DeleteOauth2CredentialProviderFluentBuilder
Constructs a fluent builder for the DeleteOauth2CredentialProvider
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the OAuth2 credential provider to delete.
- On success, responds with
DeleteOauth2CredentialProviderOutput
- On failure, responds with
SdkError<DeleteOauth2CredentialProviderError>
Source§impl Client
impl Client
Sourcepub fn delete_workload_identity(&self) -> DeleteWorkloadIdentityFluentBuilder
pub fn delete_workload_identity(&self) -> DeleteWorkloadIdentityFluentBuilder
Constructs a fluent builder for the DeleteWorkloadIdentity
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the workload identity to delete.
- On success, responds with
DeleteWorkloadIdentityOutput
- On failure, responds with
SdkError<DeleteWorkloadIdentityError>
Source§impl Client
impl Client
Sourcepub fn get_agent_runtime(&self) -> GetAgentRuntimeFluentBuilder
pub fn get_agent_runtime(&self) -> GetAgentRuntimeFluentBuilder
Constructs a fluent builder for the GetAgentRuntime
operation.
- The fluent builder is configurable:
agent_runtime_id(impl Into<String>)
/set_agent_runtime_id(Option<String>)
:
required: trueThe unique identifier of the agent runtime to retrieve.
agent_runtime_version(impl Into<String>)
/set_agent_runtime_version(Option<String>)
:
required: falseThe version of the agent runtime to retrieve.
- On success, responds with
GetAgentRuntimeOutput
with field(s):agent_runtime_arn(String)
:The Amazon Resource Name (ARN) of the agent runtime.
workload_identity_details(Option<WorkloadIdentityDetails>)
:The workload identity details for the agent runtime.
agent_runtime_name(String)
:The name of the agent runtime.
description(Option<String>)
:The description of the agent runtime.
agent_runtime_id(String)
:The unique identifier of the agent runtime.
agent_runtime_version(String)
:The version of the agent runtime.
created_at(DateTime)
:The timestamp when the agent runtime was created.
last_updated_at(DateTime)
:The timestamp when the agent runtime was last updated.
role_arn(String)
:The IAM role ARN that provides permissions for the agent runtime.
agent_runtime_artifact(Option<AgentArtifact>)
:The artifact of the agent runtime.
network_configuration(Option<NetworkConfiguration>)
:The network configuration for the agent runtime.
protocol_configuration(Option<ProtocolConfiguration>)
:The protocol configuration for an agent runtime. This structure defines how the agent runtime communicates with clients.
environment_variables(Option<HashMap::<String, String>>)
:Environment variables set in the agent runtime environment.
authorizer_configuration(Option<AuthorizerConfiguration>)
:The authorizer configuration for the agent runtime.
status(AgentStatus)
:The current status of the agent runtime.
- On failure, responds with
SdkError<GetAgentRuntimeError>
Source§impl Client
impl Client
Sourcepub fn get_agent_runtime_endpoint(&self) -> GetAgentRuntimeEndpointFluentBuilder
pub fn get_agent_runtime_endpoint(&self) -> GetAgentRuntimeEndpointFluentBuilder
Constructs a fluent builder for the GetAgentRuntimeEndpoint
operation.
- The fluent builder is configurable:
agent_runtime_id(impl Into<String>)
/set_agent_runtime_id(Option<String>)
:
required: trueThe unique identifier of the agent runtime associated with the endpoint.
endpoint_name(impl Into<String>)
/set_endpoint_name(Option<String>)
:
required: trueThe name of the agent runtime endpoint to retrieve.
- On success, responds with
GetAgentRuntimeEndpointOutput
with field(s):live_version(Option<String>)
:The currently deployed version of the agent runtime on the endpoint.
target_version(Option<String>)
:The target version of the agent runtime for the endpoint.
agent_runtime_endpoint_arn(String)
:The Amazon Resource Name (ARN) of the agent runtime endpoint.
agent_runtime_arn(String)
:The Amazon Resource Name (ARN) of the agent runtime.
description(Option<String>)
:The description of the agent runtime endpoint.
status(AgentEndpointStatus)
:The current status of the agent runtime endpoint.
created_at(DateTime)
:The timestamp when the agent runtime endpoint was created.
last_updated_at(DateTime)
:The timestamp when the agent runtime endpoint was last updated.
failure_reason(Option<String>)
:The reason for failure if the agent runtime endpoint is in a failed state.
name(String)
:The name of the agent runtime endpoint.
id(String)
:The unique identifier of the agent runtime endpoint.
- On failure, responds with
SdkError<GetAgentRuntimeEndpointError>
Source§impl Client
impl Client
Sourcepub fn get_api_key_credential_provider(
&self,
) -> GetApiKeyCredentialProviderFluentBuilder
pub fn get_api_key_credential_provider( &self, ) -> GetApiKeyCredentialProviderFluentBuilder
Constructs a fluent builder for the GetApiKeyCredentialProvider
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the API key credential provider to retrieve.
- On success, responds with
GetApiKeyCredentialProviderOutput
with field(s):api_key_secret_arn(Option<Secret>)
:The Amazon Resource Name (ARN) of the API key secret in AWS Secrets Manager.
name(String)
:The name of the API key credential provider.
credential_provider_arn(String)
:The Amazon Resource Name (ARN) of the API key credential provider.
created_time(DateTime)
:The timestamp when the API key credential provider was created.
last_updated_time(DateTime)
:The timestamp when the API key credential provider was last updated.
- On failure, responds with
SdkError<GetApiKeyCredentialProviderError>
Source§impl Client
impl Client
Sourcepub fn get_browser(&self) -> GetBrowserFluentBuilder
pub fn get_browser(&self) -> GetBrowserFluentBuilder
Constructs a fluent builder for the GetBrowser
operation.
- The fluent builder is configurable:
browser_id(impl Into<String>)
/set_browser_id(Option<String>)
:
required: trueThe unique identifier of the browser to retrieve.
- On success, responds with
GetBrowserOutput
with field(s):browser_id(String)
:The unique identifier of the browser.
browser_arn(String)
:The Amazon Resource Name (ARN) of the browser.
name(String)
:The name of the browser.
description(Option<String>)
:The description of the browser.
execution_role_arn(Option<String>)
:The IAM role ARN that provides permissions for the browser.
network_configuration(Option<BrowserNetworkConfiguration>)
:The network configuration for a browser. This structure defines how the browser connects to the network.
recording(Option<RecordingConfig>)
:The recording configuration for a browser. This structure defines how browser sessions are recorded.
status(BrowserStatus)
:The current status of the browser.
created_at(DateTime)
:The timestamp when the browser was created.
last_updated_at(DateTime)
:The timestamp when the browser was last updated.
- On failure, responds with
SdkError<GetBrowserError>
Source§impl Client
impl Client
Sourcepub fn get_code_interpreter(&self) -> GetCodeInterpreterFluentBuilder
pub fn get_code_interpreter(&self) -> GetCodeInterpreterFluentBuilder
Constructs a fluent builder for the GetCodeInterpreter
operation.
- The fluent builder is configurable:
code_interpreter_id(impl Into<String>)
/set_code_interpreter_id(Option<String>)
:
required: trueThe unique identifier of the code interpreter to retrieve.
- On success, responds with
GetCodeInterpreterOutput
with field(s):code_interpreter_id(String)
:The unique identifier of the code interpreter.
code_interpreter_arn(String)
:The Amazon Resource Name (ARN) of the code interpreter.
name(String)
:The name of the code interpreter.
description(Option<String>)
:The description of the code interpreter.
execution_role_arn(Option<String>)
:The IAM role ARN that provides permissions for the code interpreter.
network_configuration(Option<CodeInterpreterNetworkConfiguration>)
:The network configuration for a code interpreter. This structure defines how the code interpreter connects to the network.
status(CodeInterpreterStatus)
:The current status of the code interpreter.
created_at(DateTime)
:The timestamp when the code interpreter was created.
last_updated_at(DateTime)
:The timestamp when the code interpreter was last updated.
- On failure, responds with
SdkError<GetCodeInterpreterError>
Source§impl Client
impl Client
Sourcepub fn get_gateway(&self) -> GetGatewayFluentBuilder
pub fn get_gateway(&self) -> GetGatewayFluentBuilder
Constructs a fluent builder for the GetGateway
operation.
- The fluent builder is configurable:
gateway_identifier(impl Into<String>)
/set_gateway_identifier(Option<String>)
:
required: trueThe identifier of the gateway to retrieve. This can be either the gateway ID or the gateway ARN.
- On success, responds with
GetGatewayOutput
with field(s):gateway_arn(String)
:The Amazon Resource Name (ARN) of the Gateway.
gateway_id(String)
:The unique identifier of the Gateway.
gateway_url(Option<String>)
:An endpoint for invoking Gateway.
created_at(DateTime)
:The timestamp when the Gateway was created.
updated_at(DateTime)
:The timestamp when the Gateway was last updated.
status(GatewayStatus)
:The current status of the Gateway.
status_reasons(Option<Vec::<String>>)
:The reasons for the current status of the Gateway.
name(String)
:The name of the Gateway.
description(Option<String>)
:The description of the Gateway.
role_arn(Option<String>)
:The IAM role ARN that provides permissions for the Gateway.
protocol_type(GatewayProtocolType)
:Protocol applied to a Gateway.
protocol_configuration(Option<GatewayProtocolConfiguration>)
:The configuration for a gateway protocol. This structure defines how the gateway communicates with external services.
authorizer_type(AuthorizerType)
:Authorizer type for the gateway.
authorizer_configuration(Option<AuthorizerConfiguration>)
:The authorizer configuration for the Gateway.
kms_key_arn(Option<String>)
:The ARN of the KMS key used to encrypt the Gateway.
workload_identity_details(Option<WorkloadIdentityDetails>)
:The workload identity details for the Gateway.
exception_level(Option<ExceptionLevel>)
:The verbosity of exception messages. Use DEBUG mode to see granular exception messages from a Gateway. If this parameter is not set, exception messages are by default sanitized for presentation to end users.
- On failure, responds with
SdkError<GetGatewayError>
Source§impl Client
impl Client
Sourcepub fn get_gateway_target(&self) -> GetGatewayTargetFluentBuilder
pub fn get_gateway_target(&self) -> GetGatewayTargetFluentBuilder
Constructs a fluent builder for the GetGatewayTarget
operation.
- The fluent builder is configurable:
gateway_identifier(impl Into<String>)
/set_gateway_identifier(Option<String>)
:
required: trueThe identifier of the gateway that contains the target. This can be either the gateway ID or the gateway ARN.
target_id(impl Into<String>)
/set_target_id(Option<String>)
:
required: trueThe unique identifier of the target to retrieve.
- On success, responds with
GetGatewayTargetOutput
with field(s):gateway_arn(String)
:The Amazon Resource Name (ARN) of the Gateway.
target_id(String)
:The unique identifier of the Gateway Target.
created_at(DateTime)
:The timestamp when the Gateway Target was created.
updated_at(DateTime)
:The timestamp when the Gateway Target was last updated.
status(TargetStatus)
:The current status of the Gateway Target.
status_reasons(Option<Vec::<String>>)
:The reasons for the current status of the Gateway Target.
name(String)
:The name of the Gateway Target.
description(Option<String>)
:The description of the Gateway Target.
target_configuration(Option<TargetConfiguration>)
:The configuration for a gateway target. This structure defines how the gateway connects to and interacts with the target endpoint.
credential_provider_configurations(Vec::<CredentialProviderConfiguration>)
:The credential provider configurations for the Gateway Target.
- On failure, responds with
SdkError<GetGatewayTargetError>
Source§impl Client
impl Client
Sourcepub fn get_memory(&self) -> GetMemoryFluentBuilder
pub fn get_memory(&self) -> GetMemoryFluentBuilder
Constructs a fluent builder for the GetMemory
operation.
- The fluent builder is configurable:
memory_id(impl Into<String>)
/set_memory_id(Option<String>)
:
required: trueThe unique identifier of the memory to retrieve.
- On success, responds with
GetMemoryOutput
with field(s):memory(Option<Memory>)
:The retrieved memory details.
- On failure, responds with
SdkError<GetMemoryError>
Source§impl Client
impl Client
Sourcepub fn get_oauth2_credential_provider(
&self,
) -> GetOauth2CredentialProviderFluentBuilder
pub fn get_oauth2_credential_provider( &self, ) -> GetOauth2CredentialProviderFluentBuilder
Constructs a fluent builder for the GetOauth2CredentialProvider
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the OAuth2 credential provider to retrieve.
- On success, responds with
GetOauth2CredentialProviderOutput
with field(s):client_secret_arn(Option<Secret>)
:The Amazon Resource Name (ARN) of the client secret in AWS Secrets Manager.
name(String)
:The name of the OAuth2 credential provider.
credential_provider_arn(String)
:ARN of the credential provider requested.
credential_provider_vendor(CredentialProviderVendorType)
:The vendor of the OAuth2 credential provider.
oauth2_provider_config_output(Option<Oauth2ProviderConfigOutput>)
:The configuration output for the OAuth2 provider.
created_time(DateTime)
:The timestamp when the OAuth2 credential provider was created.
last_updated_time(DateTime)
:The timestamp when the OAuth2 credential provider was last updated.
- On failure, responds with
SdkError<GetOauth2CredentialProviderError>
Source§impl Client
impl Client
Sourcepub fn get_token_vault(&self) -> GetTokenVaultFluentBuilder
pub fn get_token_vault(&self) -> GetTokenVaultFluentBuilder
Constructs a fluent builder for the GetTokenVault
operation.
- The fluent builder is configurable:
token_vault_id(impl Into<String>)
/set_token_vault_id(Option<String>)
:
required: falseThe unique identifier of the token vault to retrieve.
- On success, responds with
GetTokenVaultOutput
with field(s):token_vault_id(String)
:The ID of the token vault.
kms_configuration(Option<KmsConfiguration>)
:The KMS configuration for the token vault.
last_modified_date(DateTime)
:The timestamp when the token vault was last modified.
- On failure, responds with
SdkError<GetTokenVaultError>
Source§impl Client
impl Client
Sourcepub fn get_workload_identity(&self) -> GetWorkloadIdentityFluentBuilder
pub fn get_workload_identity(&self) -> GetWorkloadIdentityFluentBuilder
Constructs a fluent builder for the GetWorkloadIdentity
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the workload identity to retrieve.
- On success, responds with
GetWorkloadIdentityOutput
with field(s):name(String)
:The name of the workload identity.
workload_identity_arn(String)
:The Amazon Resource Name (ARN) of the workload identity.
allowed_resource_oauth2_return_urls(Option<Vec::<String>>)
:The list of allowed OAuth2 return URLs for resources associated with this workload identity.
created_time(DateTime)
:The timestamp when the workload identity was created.
last_updated_time(DateTime)
:The timestamp when the workload identity was last updated.
- On failure, responds with
SdkError<GetWorkloadIdentityError>
Source§impl Client
impl Client
Sourcepub fn list_agent_runtime_endpoints(
&self,
) -> ListAgentRuntimeEndpointsFluentBuilder
pub fn list_agent_runtime_endpoints( &self, ) -> ListAgentRuntimeEndpointsFluentBuilder
Constructs a fluent builder for the ListAgentRuntimeEndpoints
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
agent_runtime_id(impl Into<String>)
/set_agent_runtime_id(Option<String>)
:
required: trueThe unique identifier of the agent runtime to list endpoints for.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results to return in the response.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseA token to retrieve the next page of results.
- On success, responds with
ListAgentRuntimeEndpointsOutput
with field(s):runtime_endpoints(Vec::<AgentEndpoint>)
:The list of agent runtime endpoints.
next_token(Option<String>)
:A token to retrieve the next page of results.
- On failure, responds with
SdkError<ListAgentRuntimeEndpointsError>
Source§impl Client
impl Client
Sourcepub fn list_agent_runtime_versions(
&self,
) -> ListAgentRuntimeVersionsFluentBuilder
pub fn list_agent_runtime_versions( &self, ) -> ListAgentRuntimeVersionsFluentBuilder
Constructs a fluent builder for the ListAgentRuntimeVersions
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
agent_runtime_id(impl Into<String>)
/set_agent_runtime_id(Option<String>)
:
required: trueThe unique identifier of the agent runtime to list versions for.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results to return in the response.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseA token to retrieve the next page of results.
- On success, responds with
ListAgentRuntimeVersionsOutput
with field(s):agent_runtimes(Vec::<Agent>)
:The list of agent runtime versions.
next_token(Option<String>)
:A token to retrieve the next page of results.
- On failure, responds with
SdkError<ListAgentRuntimeVersionsError>
Source§impl Client
impl Client
Sourcepub fn list_agent_runtimes(&self) -> ListAgentRuntimesFluentBuilder
pub fn list_agent_runtimes(&self) -> ListAgentRuntimesFluentBuilder
Constructs a fluent builder for the ListAgentRuntimes
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 the response.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseA token to retrieve the next page of results.
- On success, responds with
ListAgentRuntimesOutput
with field(s):agent_runtimes(Vec::<Agent>)
:The list of agent runtimes.
next_token(Option<String>)
:A token to retrieve the next page of results.
- On failure, responds with
SdkError<ListAgentRuntimesError>
Source§impl Client
impl Client
Sourcepub fn list_api_key_credential_providers(
&self,
) -> ListApiKeyCredentialProvidersFluentBuilder
pub fn list_api_key_credential_providers( &self, ) -> ListApiKeyCredentialProvidersFluentBuilder
Constructs a fluent builder for the ListApiKeyCredentialProviders
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falsePagination token.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseMaximum number of results to return.
- On success, responds with
ListApiKeyCredentialProvidersOutput
with field(s):credential_providers(Vec::<ApiKeyCredentialProviderItem>)
:The list of API key credential providers.
next_token(Option<String>)
:Pagination token for the next page of results.
- On failure, responds with
SdkError<ListApiKeyCredentialProvidersError>
Source§impl Client
impl Client
Sourcepub fn list_browsers(&self) -> ListBrowsersFluentBuilder
pub fn list_browsers(&self) -> ListBrowsersFluentBuilder
Constructs a fluent builder for the ListBrowsers
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. The default value is 10. The maximum value is 50.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
r#type(ResourceType)
/set_type(Option<ResourceType>)
:
required: falseThe type of browsers to list. If not specified, all browser types are returned.
- On success, responds with
ListBrowsersOutput
with field(s):browser_summaries(Vec::<BrowserSummary>)
:The list of browser summaries.
next_token(Option<String>)
:A token to retrieve the next page of results.
- On failure, responds with
SdkError<ListBrowsersError>
Source§impl Client
impl Client
Sourcepub fn list_code_interpreters(&self) -> ListCodeInterpretersFluentBuilder
pub fn list_code_interpreters(&self) -> ListCodeInterpretersFluentBuilder
Constructs a fluent builder for the ListCodeInterpreters
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 the response.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseA token to retrieve the next page of results.
r#type(ResourceType)
/set_type(Option<ResourceType>)
:
required: falseThe type of code interpreters to list.
- On success, responds with
ListCodeInterpretersOutput
with field(s):code_interpreter_summaries(Vec::<CodeInterpreterSummary>)
:The list of code interpreter summaries.
next_token(Option<String>)
:A token to retrieve the next page of results.
- On failure, responds with
SdkError<ListCodeInterpretersError>
Source§impl Client
impl Client
Sourcepub fn list_gateway_targets(&self) -> ListGatewayTargetsFluentBuilder
pub fn list_gateway_targets(&self) -> ListGatewayTargetsFluentBuilder
Constructs a fluent builder for the ListGatewayTargets
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
gateway_identifier(impl Into<String>)
/set_gateway_identifier(Option<String>)
:
required: trueThe identifier of the gateway to list targets for. This can be either the gateway ID or the gateway ARN.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe maximum number of results to return in a single call. The default value is 10. The maximum value is 50.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
- On success, responds with
ListGatewayTargetsOutput
with field(s):items(Vec::<TargetSummary>)
:The list of Gateway Target summaries.
next_token(Option<String>)
:Opaque continuation token for the next paginated response.
- On failure, responds with
SdkError<ListGatewayTargetsError>
Source§impl Client
impl Client
Sourcepub fn list_gateways(&self) -> ListGatewaysFluentBuilder
pub fn list_gateways(&self) -> ListGatewaysFluentBuilder
Constructs a fluent builder for the ListGateways
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. The default value is 10. The maximum value is 50.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
- On success, responds with
ListGatewaysOutput
with field(s):items(Vec::<GatewaySummary>)
:The list of Gateway summaries.
next_token(Option<String>)
:Opaque continuation token for the next paginated response.
- On failure, responds with
SdkError<ListGatewaysError>
Source§impl Client
impl Client
Sourcepub fn list_memories(&self) -> ListMemoriesFluentBuilder
pub fn list_memories(&self) -> ListMemoriesFluentBuilder
Constructs a fluent builder for the ListMemories
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. The default value is 10. The maximum value is 50.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
- On success, responds with
ListMemoriesOutput
with field(s):memories(Vec::<MemorySummary>)
:The list of memory summaries.
next_token(Option<String>)
:A token to retrieve the next page of results.
- On failure, responds with
SdkError<ListMemoriesError>
Source§impl Client
impl Client
Sourcepub fn list_oauth2_credential_providers(
&self,
) -> ListOauth2CredentialProvidersFluentBuilder
pub fn list_oauth2_credential_providers( &self, ) -> ListOauth2CredentialProvidersFluentBuilder
Constructs a fluent builder for the ListOauth2CredentialProviders
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falsePagination token.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseMaximum number of results to return.
- On success, responds with
ListOauth2CredentialProvidersOutput
with field(s):credential_providers(Vec::<Oauth2CredentialProviderItem>)
:The list of OAuth2 credential providers.
next_token(Option<String>)
:Pagination token for the next page of results.
- On failure, responds with
SdkError<ListOauth2CredentialProvidersError>
Source§impl Client
impl Client
Sourcepub fn list_workload_identities(&self) -> ListWorkloadIdentitiesFluentBuilder
pub fn list_workload_identities(&self) -> ListWorkloadIdentitiesFluentBuilder
Constructs a fluent builder for the ListWorkloadIdentities
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falsePagination token.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseMaximum number of results to return.
- On success, responds with
ListWorkloadIdentitiesOutput
with field(s):workload_identities(Vec::<WorkloadIdentityType>)
:The list of workload identities.
next_token(Option<String>)
:Pagination token for the next page of results.
- On failure, responds with
SdkError<ListWorkloadIdentitiesError>
Source§impl Client
impl Client
Sourcepub fn set_token_vault_cmk(&self) -> SetTokenVaultCMKFluentBuilder
pub fn set_token_vault_cmk(&self) -> SetTokenVaultCMKFluentBuilder
Constructs a fluent builder for the SetTokenVaultCMK
operation.
- The fluent builder is configurable:
token_vault_id(impl Into<String>)
/set_token_vault_id(Option<String>)
:
required: falseThe unique identifier of the token vault to update.
kms_configuration(KmsConfiguration)
/set_kms_configuration(Option<KmsConfiguration>)
:
required: trueThe KMS configuration for the token vault, including the key type and KMS key ARN.
- On success, responds with
SetTokenVaultCmkOutput
with field(s):token_vault_id(String)
:The ID of the token vault.
kms_configuration(Option<KmsConfiguration>)
:The KMS configuration for the token vault.
last_modified_date(DateTime)
:The timestamp when the token vault was last modified.
- On failure, responds with
SdkError<SetTokenVaultCMKError>
Source§impl Client
impl Client
Sourcepub fn update_agent_runtime(&self) -> UpdateAgentRuntimeFluentBuilder
pub fn update_agent_runtime(&self) -> UpdateAgentRuntimeFluentBuilder
Constructs a fluent builder for the UpdateAgentRuntime
operation.
- The fluent builder is configurable:
agent_runtime_id(impl Into<String>)
/set_agent_runtime_id(Option<String>)
:
required: trueThe unique identifier of the agent runtime to update.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe updated description of the agent runtime.
agent_runtime_artifact(AgentArtifact)
/set_agent_runtime_artifact(Option<AgentArtifact>)
:
required: trueThe updated artifact of the agent runtime.
role_arn(impl Into<String>)
/set_role_arn(Option<String>)
:
required: trueThe updated IAM role ARN that provides permissions for the agent runtime.
network_configuration(NetworkConfiguration)
/set_network_configuration(Option<NetworkConfiguration>)
:
required: trueThe updated network configuration for the agent runtime.
protocol_configuration(ProtocolConfiguration)
/set_protocol_configuration(Option<ProtocolConfiguration>)
:
required: falseThe protocol configuration for an agent runtime. This structure defines how the agent runtime communicates with clients.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseA unique, case-sensitive identifier to ensure idempotency of the request.
environment_variables(impl Into<String>, impl Into<String>)
/set_environment_variables(Option<HashMap::<String, String>>)
:
required: falseUpdated environment variables to set in the agent runtime environment.
authorizer_configuration(AuthorizerConfiguration)
/set_authorizer_configuration(Option<AuthorizerConfiguration>)
:
required: falseThe updated authorizer configuration for the agent runtime.
- On success, responds with
UpdateAgentRuntimeOutput
with field(s):agent_runtime_arn(String)
:The Amazon Resource Name (ARN) of the updated agent runtime.
agent_runtime_id(String)
:The unique identifier of the updated agent runtime.
workload_identity_details(Option<WorkloadIdentityDetails>)
:The workload identity details for the updated agent runtime.
agent_runtime_version(String)
:The version of the updated agent runtime.
created_at(DateTime)
:The timestamp when the agent runtime was created.
last_updated_at(DateTime)
:The timestamp when the agent runtime was last updated.
status(AgentStatus)
:The current status of the updated agent runtime.
- On failure, responds with
SdkError<UpdateAgentRuntimeError>
Source§impl Client
impl Client
Sourcepub fn update_agent_runtime_endpoint(
&self,
) -> UpdateAgentRuntimeEndpointFluentBuilder
pub fn update_agent_runtime_endpoint( &self, ) -> UpdateAgentRuntimeEndpointFluentBuilder
Constructs a fluent builder for the UpdateAgentRuntimeEndpoint
operation.
- The fluent builder is configurable:
agent_runtime_id(impl Into<String>)
/set_agent_runtime_id(Option<String>)
:
required: trueThe unique identifier of the agent runtime associated with the endpoint.
endpoint_name(impl Into<String>)
/set_endpoint_name(Option<String>)
:
required: trueThe name of the agent runtime endpoint to update.
agent_runtime_version(impl Into<String>)
/set_agent_runtime_version(Option<String>)
:
required: falseThe updated version of the agent runtime for the endpoint.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe updated description of the agent runtime endpoint.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseA unique, case-sensitive identifier to ensure idempotency of the request.
- On success, responds with
UpdateAgentRuntimeEndpointOutput
with field(s):live_version(Option<String>)
:The currently deployed version of the agent runtime on the endpoint.
target_version(Option<String>)
:The target version of the agent runtime for the endpoint.
agent_runtime_endpoint_arn(String)
:The Amazon Resource Name (ARN) of the agent runtime endpoint.
agent_runtime_arn(String)
:The Amazon Resource Name (ARN) of the agent runtime.
status(AgentEndpointStatus)
:The current status of the updated agent runtime endpoint.
created_at(DateTime)
:The timestamp when the agent runtime endpoint was created.
last_updated_at(DateTime)
:The timestamp when the agent runtime endpoint was last updated.
- On failure, responds with
SdkError<UpdateAgentRuntimeEndpointError>
Source§impl Client
impl Client
Sourcepub fn update_api_key_credential_provider(
&self,
) -> UpdateApiKeyCredentialProviderFluentBuilder
pub fn update_api_key_credential_provider( &self, ) -> UpdateApiKeyCredentialProviderFluentBuilder
Constructs a fluent builder for the UpdateApiKeyCredentialProvider
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the API key credential provider to update.
api_key(impl Into<String>)
/set_api_key(Option<String>)
:
required: trueThe new API key to use for authentication. This value replaces the existing API key and is encrypted and stored securely.
- On success, responds with
UpdateApiKeyCredentialProviderOutput
with field(s):api_key_secret_arn(Option<Secret>)
:The Amazon Resource Name (ARN) of the API key secret in AWS Secrets Manager.
name(String)
:The name of the API key credential provider.
credential_provider_arn(String)
:The Amazon Resource Name (ARN) of the API key credential provider.
created_time(DateTime)
:The timestamp when the API key credential provider was created.
last_updated_time(DateTime)
:The timestamp when the API key credential provider was last updated.
- On failure, responds with
SdkError<UpdateApiKeyCredentialProviderError>
Source§impl Client
impl Client
Sourcepub fn update_gateway(&self) -> UpdateGatewayFluentBuilder
pub fn update_gateway(&self) -> UpdateGatewayFluentBuilder
Constructs a fluent builder for the UpdateGateway
operation.
- The fluent builder is configurable:
gateway_identifier(impl Into<String>)
/set_gateway_identifier(Option<String>)
:
required: trueThe identifier of the gateway to update. This can be either the gateway ID or the gateway ARN.
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe updated name for the Gateway.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe updated description for the Gateway.
role_arn(impl Into<String>)
/set_role_arn(Option<String>)
:
required: trueThe updated IAM role ARN that provides permissions for the Gateway.
protocol_type(GatewayProtocolType)
/set_protocol_type(Option<GatewayProtocolType>)
:
required: trueThe updated protocol type for the Gateway.
protocol_configuration(GatewayProtocolConfiguration)
/set_protocol_configuration(Option<GatewayProtocolConfiguration>)
:
required: falseThe configuration for a gateway protocol. This structure defines how the gateway communicates with external services.
authorizer_type(AuthorizerType)
/set_authorizer_type(Option<AuthorizerType>)
:
required: trueThe updated authorizer type for the Gateway.
authorizer_configuration(AuthorizerConfiguration)
/set_authorizer_configuration(Option<AuthorizerConfiguration>)
:
required: trueThe updated authorizer configuration for the Gateway.
kms_key_arn(impl Into<String>)
/set_kms_key_arn(Option<String>)
:
required: falseThe updated ARN of the KMS key used to encrypt the Gateway.
exception_level(ExceptionLevel)
/set_exception_level(Option<ExceptionLevel>)
:
required: falseThe verbosity of exception messages. Use DEBUG mode to see granular exception messages from a Gateway. If this parameter is not set, exception messages are by default sanitized for presentation to end users.
- On success, responds with
UpdateGatewayOutput
with field(s):gateway_arn(String)
:The Amazon Resource Name (ARN) of the updated Gateway.
gateway_id(String)
:The unique identifier of the updated Gateway.
gateway_url(Option<String>)
:An endpoint for invoking the updated Gateway.
created_at(DateTime)
:The timestamp when the Gateway was created.
updated_at(DateTime)
:The timestamp when the Gateway was last updated.
status(GatewayStatus)
:The current status of the updated Gateway.
status_reasons(Option<Vec::<String>>)
:The reasons for the current status of the updated Gateway.
name(String)
:The updated name of the Gateway.
description(Option<String>)
:The updated description of the Gateway.
role_arn(Option<String>)
:The updated IAM role ARN that provides permissions for the Gateway.
protocol_type(GatewayProtocolType)
:The updated protocol type for the Gateway.
protocol_configuration(Option<GatewayProtocolConfiguration>)
:The configuration for a gateway protocol. This structure defines how the gateway communicates with external services.
authorizer_type(AuthorizerType)
:The updated authorizer type for the Gateway.
authorizer_configuration(Option<AuthorizerConfiguration>)
:The updated authorizer configuration for the Gateway.
kms_key_arn(Option<String>)
:The updated ARN of the KMS key used to encrypt the Gateway.
workload_identity_details(Option<WorkloadIdentityDetails>)
:The workload identity details for the updated Gateway.
exception_level(Option<ExceptionLevel>)
:The verbosity of exception messages. Use DEBUG mode to see granular exception messages from a Gateway. If this parameter is not set, exception messages are by default sanitized for presentation to end users.
- On failure, responds with
SdkError<UpdateGatewayError>
Source§impl Client
impl Client
Sourcepub fn update_gateway_target(&self) -> UpdateGatewayTargetFluentBuilder
pub fn update_gateway_target(&self) -> UpdateGatewayTargetFluentBuilder
Constructs a fluent builder for the UpdateGatewayTarget
operation.
- The fluent builder is configurable:
gateway_identifier(impl Into<String>)
/set_gateway_identifier(Option<String>)
:
required: trueThe unique identifier of the Gateway associated with the target.
target_id(impl Into<String>)
/set_target_id(Option<String>)
:
required: trueThe unique identifier of the Gateway Target to update.
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe updated name for the Gateway Target.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe updated description for the Gateway Target.
target_configuration(TargetConfiguration)
/set_target_configuration(Option<TargetConfiguration>)
:
required: trueThe configuration for a gateway target. This structure defines how the gateway connects to and interacts with the target endpoint.
credential_provider_configurations(CredentialProviderConfiguration)
/set_credential_provider_configurations(Option<Vec::<CredentialProviderConfiguration>>)
:
required: trueThe updated credential provider configurations for the Gateway Target.
- On success, responds with
UpdateGatewayTargetOutput
with field(s):gateway_arn(String)
:The Amazon Resource Name (ARN) of the Gateway.
target_id(String)
:The unique identifier of the updated Gateway Target.
created_at(DateTime)
:The timestamp when the Gateway Target was created.
updated_at(DateTime)
:The timestamp when the Gateway Target was last updated.
status(TargetStatus)
:The current status of the updated Gateway Target.
status_reasons(Option<Vec::<String>>)
:The reasons for the current status of the updated Gateway Target.
name(String)
:The updated name of the Gateway Target.
description(Option<String>)
:The updated description of the Gateway Target.
target_configuration(Option<TargetConfiguration>)
:The configuration for a gateway target. This structure defines how the gateway connects to and interacts with the target endpoint.
credential_provider_configurations(Vec::<CredentialProviderConfiguration>)
:The updated credential provider configurations for the Gateway Target.
- On failure, responds with
SdkError<UpdateGatewayTargetError>
Source§impl Client
impl Client
Sourcepub fn update_memory(&self) -> UpdateMemoryFluentBuilder
pub fn update_memory(&self) -> UpdateMemoryFluentBuilder
Constructs a fluent builder for the UpdateMemory
operation.
- The fluent builder is configurable:
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseA client token is used for keeping track of idempotent requests. It can contain a session id which can be around 250 chars, combined with a unique AWS identifier.
memory_id(impl Into<String>)
/set_memory_id(Option<String>)
:
required: trueThe unique identifier of the memory to update.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe updated description of the memory.
event_expiry_duration(i32)
/set_event_expiry_duration(Option<i32>)
:
required: falseThe number of days after which memory events will expire, between 7 and 365 days.
memory_execution_role_arn(impl Into<String>)
/set_memory_execution_role_arn(Option<String>)
:
required: falseThe ARN of the IAM role that provides permissions for the memory.
memory_strategies(ModifyMemoryStrategies)
/set_memory_strategies(Option<ModifyMemoryStrategies>)
:
required: falseThe memory strategies to add, modify, or delete.
- On success, responds with
UpdateMemoryOutput
with field(s):memory(Option<Memory>)
:The updated memory details.
- On failure, responds with
SdkError<UpdateMemoryError>
Source§impl Client
impl Client
Sourcepub fn update_oauth2_credential_provider(
&self,
) -> UpdateOauth2CredentialProviderFluentBuilder
pub fn update_oauth2_credential_provider( &self, ) -> UpdateOauth2CredentialProviderFluentBuilder
Constructs a fluent builder for the UpdateOauth2CredentialProvider
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the OAuth2 credential provider to update.
credential_provider_vendor(CredentialProviderVendorType)
/set_credential_provider_vendor(Option<CredentialProviderVendorType>)
:
required: trueThe vendor of the OAuth2 credential provider.
oauth2_provider_config_input(Oauth2ProviderConfigInput)
/set_oauth2_provider_config_input(Option<Oauth2ProviderConfigInput>)
:
required: trueThe configuration input for the OAuth2 provider.
- On success, responds with
UpdateOauth2CredentialProviderOutput
with field(s):client_secret_arn(Option<Secret>)
:The Amazon Resource Name (ARN) of the client secret in AWS Secrets Manager.
name(String)
:The name of the OAuth2 credential provider.
credential_provider_vendor(CredentialProviderVendorType)
:The vendor of the OAuth2 credential provider.
credential_provider_arn(String)
:The Amazon Resource Name (ARN) of the OAuth2 credential provider.
oauth2_provider_config_output(Option<Oauth2ProviderConfigOutput>)
:The configuration output for the OAuth2 provider.
created_time(DateTime)
:The timestamp when the OAuth2 credential provider was created.
last_updated_time(DateTime)
:The timestamp when the OAuth2 credential provider was last updated.
- On failure, responds with
SdkError<UpdateOauth2CredentialProviderError>
Source§impl Client
impl Client
Sourcepub fn update_workload_identity(&self) -> UpdateWorkloadIdentityFluentBuilder
pub fn update_workload_identity(&self) -> UpdateWorkloadIdentityFluentBuilder
Constructs a fluent builder for the UpdateWorkloadIdentity
operation.
- The fluent builder is configurable:
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the workload identity to update.
allowed_resource_oauth2_return_urls(impl Into<String>)
/set_allowed_resource_oauth2_return_urls(Option<Vec::<String>>)
:
required: falseThe new list of allowed OAuth2 return URLs for resources associated with this workload identity. This list replaces the existing list.
- On success, responds with
UpdateWorkloadIdentityOutput
with field(s):name(String)
:The name of the workload identity.
workload_identity_arn(String)
:The Amazon Resource Name (ARN) of the workload identity.
allowed_resource_oauth2_return_urls(Option<Vec::<String>>)
:The list of allowed OAuth2 return URLs for resources associated with this workload identity.
created_time(DateTime)
:The timestamp when the workload identity was created.
last_updated_time(DateTime)
:The timestamp when the workload identity was last updated.
- On failure, responds with
SdkError<UpdateWorkloadIdentityError>
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§
Source§impl Waiters for Client
impl Waiters for Client
Source§fn wait_until_memory_created(&self) -> MemoryCreatedFluentBuilder
fn wait_until_memory_created(&self) -> MemoryCreatedFluentBuilder
memory_created
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);