pub struct Client { /* private fields */ }
Expand description
Client for AWS Supply Chain
Client for invoking operations on AWS Supply Chain. Each operation on AWS Supply Chain 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_supplychain::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_supplychain::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 CreateBillOfMaterialsImportJob
operation has
a Client::create_bill_of_materials_import_job
, 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_bill_of_materials_import_job()
.instance_id("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_bill_of_materials_import_job(
&self,
) -> CreateBillOfMaterialsImportJobFluentBuilder
pub fn create_bill_of_materials_import_job( &self, ) -> CreateBillOfMaterialsImportJobFluentBuilder
Constructs a fluent builder for the CreateBillOfMaterialsImportJob
operation.
- The fluent builder is configurable:
instance_id(impl Into<String>)
/set_instance_id(Option<String>)
:
required: trueThe AWS Supply Chain instance identifier.
s3_uri(impl Into<String>)
/set_s3_uri(Option<String>)
:
required: trueThe S3 URI of the CSV file to be imported. The bucket must grant permissions for AWS Supply Chain to read the file.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseAn idempotency token ensures the API request is only completed no more than once. This way, retrying the request will not trigger the operation multiple times. A client token is a unique, case-sensitive string of 33 to 128 ASCII characters. To make an idempotent API request, specify a client token in the request. You should not reuse the same client token for other requests. If you retry a successful request with the same client token, the request will succeed with no further actions being taken, and you will receive the same API response as the original successful request.
- On success, responds with
CreateBillOfMaterialsImportJobOutput
with field(s):job_id(String)
:The new BillOfMaterialsImportJob identifier.
- On failure, responds with
SdkError<CreateBillOfMaterialsImportJobError>
Source§impl Client
impl Client
Sourcepub fn create_data_integration_flow(
&self,
) -> CreateDataIntegrationFlowFluentBuilder
pub fn create_data_integration_flow( &self, ) -> CreateDataIntegrationFlowFluentBuilder
Constructs a fluent builder for the CreateDataIntegrationFlow
operation.
- The fluent builder is configurable:
instance_id(impl Into<String>)
/set_instance_id(Option<String>)
:
required: trueThe Amazon Web Services Supply Chain instance identifier.
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueName of the DataIntegrationFlow.
sources(DataIntegrationFlowSource)
/set_sources(Option<Vec::<DataIntegrationFlowSource>>)
:
required: trueThe source configurations for DataIntegrationFlow.
transformation(DataIntegrationFlowTransformation)
/set_transformation(Option<DataIntegrationFlowTransformation>)
:
required: trueThe transformation configurations for DataIntegrationFlow.
target(DataIntegrationFlowTarget)
/set_target(Option<DataIntegrationFlowTarget>)
:
required: trueThe target configurations for DataIntegrationFlow.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseThe tags of the DataIntegrationFlow to be created
- On success, responds with
CreateDataIntegrationFlowOutput
with field(s):instance_id(String)
:The Amazon Web Services Supply Chain instance identifier.
name(String)
:The name of the DataIntegrationFlow created.
- On failure, responds with
SdkError<CreateDataIntegrationFlowError>
Source§impl Client
impl Client
Sourcepub fn create_data_lake_dataset(&self) -> CreateDataLakeDatasetFluentBuilder
pub fn create_data_lake_dataset(&self) -> CreateDataLakeDatasetFluentBuilder
Constructs a fluent builder for the CreateDataLakeDataset
operation.
- The fluent builder is configurable:
instance_id(impl Into<String>)
/set_instance_id(Option<String>)
:
required: trueThe Amazon Web Services Supply Chain instance identifier.
namespace(impl Into<String>)
/set_namespace(Option<String>)
:
required: trueThe namespace of the dataset, besides the custom defined namespace, every instance comes with below pre-defined namespaces:
-
asc - For information on the Amazon Web Services Supply Chain supported datasets see https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html.
-
default - For datasets with custom user-defined schemas.
-
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the dataset. For asc name space, the name must be one of the supported data entities under https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html.
schema(DataLakeDatasetSchema)
/set_schema(Option<DataLakeDatasetSchema>)
:
required: falseThe custom schema of the data lake dataset and required for dataset in default and custom namespaces.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe description of the dataset.
partition_spec(DataLakeDatasetPartitionSpec)
/set_partition_spec(Option<DataLakeDatasetPartitionSpec>)
:
required: falseThe partition specification of the dataset. Partitioning can effectively improve the dataset query performance by reducing the amount of data scanned during query execution. But partitioning or not will affect how data get ingested by data ingestion methods, such as SendDataIntegrationEvent’s dataset UPSERT will upsert records within partition (instead of within whole dataset). For more details, refer to those data ingestion documentations.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseThe tags of the dataset.
- On success, responds with
CreateDataLakeDatasetOutput
with field(s):dataset(Option<DataLakeDataset>)
:The detail of created dataset.
- On failure, responds with
SdkError<CreateDataLakeDatasetError>
Source§impl Client
impl Client
Sourcepub fn create_data_lake_namespace(&self) -> CreateDataLakeNamespaceFluentBuilder
pub fn create_data_lake_namespace(&self) -> CreateDataLakeNamespaceFluentBuilder
Constructs a fluent builder for the CreateDataLakeNamespace
operation.
- The fluent builder is configurable:
instance_id(impl Into<String>)
/set_instance_id(Option<String>)
:
required: trueThe Amazon Web Services Supply Chain instance identifier.
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the namespace. Noted you cannot create namespace with name starting with asc, default, scn, aws, amazon, amzn
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe description of the namespace.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseThe tags of the namespace.
- On success, responds with
CreateDataLakeNamespaceOutput
with field(s):namespace(Option<DataLakeNamespace>)
:The detail of created namespace.
- On failure, responds with
SdkError<CreateDataLakeNamespaceError>
Source§impl Client
impl Client
Sourcepub fn create_instance(&self) -> CreateInstanceFluentBuilder
pub fn create_instance(&self) -> CreateInstanceFluentBuilder
Constructs a fluent builder for the CreateInstance
operation.
- The fluent builder is configurable:
instance_name(impl Into<String>)
/set_instance_name(Option<String>)
:
required: falseThe AWS Supply Chain instance name.
instance_description(impl Into<String>)
/set_instance_description(Option<String>)
:
required: falseThe AWS Supply Chain instance description.
kms_key_arn(impl Into<String>)
/set_kms_key_arn(Option<String>)
:
required: falseThe ARN (Amazon Resource Name) of the Key Management Service (KMS) key you provide for encryption. This is required if you do not want to use the Amazon Web Services owned KMS key. If you don’t provide anything here, AWS Supply Chain uses the Amazon Web Services owned KMS key.
web_app_dns_domain(impl Into<String>)
/set_web_app_dns_domain(Option<String>)
:
required: falseThe DNS subdomain of the web app. This would be “example” in the URL “example.scn.global.on.aws”. You can set this to a custom value, as long as the domain isn’t already being used by someone else. The name may only include alphanumeric characters and hyphens.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseThe Amazon Web Services tags of an instance to be created.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseThe client token for idempotency.
- On success, responds with
CreateInstanceOutput
with field(s):instance(Option<Instance>)
:The AWS Supply Chain instance resource data details.
- On failure, responds with
SdkError<CreateInstanceError>
Source§impl Client
impl Client
Sourcepub fn delete_data_integration_flow(
&self,
) -> DeleteDataIntegrationFlowFluentBuilder
pub fn delete_data_integration_flow( &self, ) -> DeleteDataIntegrationFlowFluentBuilder
Constructs a fluent builder for the DeleteDataIntegrationFlow
operation.
- The fluent builder is configurable:
instance_id(impl Into<String>)
/set_instance_id(Option<String>)
:
required: trueThe Amazon Web Services Supply Chain instance identifier.
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the DataIntegrationFlow to be deleted.
- On success, responds with
DeleteDataIntegrationFlowOutput
with field(s):instance_id(String)
:The Amazon Web Services Supply Chain instance identifier.
name(String)
:The name of the DataIntegrationFlow deleted.
- On failure, responds with
SdkError<DeleteDataIntegrationFlowError>
Source§impl Client
impl Client
Sourcepub fn delete_data_lake_dataset(&self) -> DeleteDataLakeDatasetFluentBuilder
pub fn delete_data_lake_dataset(&self) -> DeleteDataLakeDatasetFluentBuilder
Constructs a fluent builder for the DeleteDataLakeDataset
operation.
- The fluent builder is configurable:
instance_id(impl Into<String>)
/set_instance_id(Option<String>)
:
required: trueThe AWS Supply Chain instance identifier.
namespace(impl Into<String>)
/set_namespace(Option<String>)
:
required: trueThe namespace of the dataset, besides the custom defined namespace, every instance comes with below pre-defined namespaces:
-
asc - For information on the Amazon Web Services Supply Chain supported datasets see https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html.
-
default - For datasets with custom user-defined schemas.
-
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the dataset. For asc namespace, the name must be one of the supported data entities under https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html.
- On success, responds with
DeleteDataLakeDatasetOutput
with field(s):instance_id(String)
:The AWS Supply Chain instance identifier.
namespace(String)
:The namespace of deleted dataset.
name(String)
:The name of deleted dataset.
- On failure, responds with
SdkError<DeleteDataLakeDatasetError>
Source§impl Client
impl Client
Sourcepub fn delete_data_lake_namespace(&self) -> DeleteDataLakeNamespaceFluentBuilder
pub fn delete_data_lake_namespace(&self) -> DeleteDataLakeNamespaceFluentBuilder
Constructs a fluent builder for the DeleteDataLakeNamespace
operation.
- The fluent builder is configurable:
instance_id(impl Into<String>)
/set_instance_id(Option<String>)
:
required: trueThe AWS Supply Chain instance identifier.
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the namespace. Noted you cannot delete pre-defined namespace like asc, default which are only deleted through instance deletion.
- On success, responds with
DeleteDataLakeNamespaceOutput
with field(s):instance_id(String)
:The AWS Supply Chain instance identifier.
name(String)
:The name of deleted namespace.
- On failure, responds with
SdkError<DeleteDataLakeNamespaceError>
Source§impl Client
impl Client
Sourcepub fn delete_instance(&self) -> DeleteInstanceFluentBuilder
pub fn delete_instance(&self) -> DeleteInstanceFluentBuilder
Constructs a fluent builder for the DeleteInstance
operation.
- The fluent builder is configurable:
instance_id(impl Into<String>)
/set_instance_id(Option<String>)
:
required: trueThe AWS Supply Chain instance identifier.
- On success, responds with
DeleteInstanceOutput
with field(s):instance(Option<Instance>)
:The AWS Supply Chain instance resource data details.
- On failure, responds with
SdkError<DeleteInstanceError>
Source§impl Client
impl Client
Sourcepub fn get_bill_of_materials_import_job(
&self,
) -> GetBillOfMaterialsImportJobFluentBuilder
pub fn get_bill_of_materials_import_job( &self, ) -> GetBillOfMaterialsImportJobFluentBuilder
Constructs a fluent builder for the GetBillOfMaterialsImportJob
operation.
- The fluent builder is configurable:
instance_id(impl Into<String>)
/set_instance_id(Option<String>)
:
required: trueThe AWS Supply Chain instance identifier.
job_id(impl Into<String>)
/set_job_id(Option<String>)
:
required: trueThe BillOfMaterialsImportJob identifier.
- On success, responds with
GetBillOfMaterialsImportJobOutput
with field(s):job(Option<BillOfMaterialsImportJob>)
:The BillOfMaterialsImportJob.
- On failure, responds with
SdkError<GetBillOfMaterialsImportJobError>
Source§impl Client
impl Client
Sourcepub fn get_data_integration_event(&self) -> GetDataIntegrationEventFluentBuilder
pub fn get_data_integration_event(&self) -> GetDataIntegrationEventFluentBuilder
Constructs a fluent builder for the GetDataIntegrationEvent
operation.
- The fluent builder is configurable:
instance_id(impl Into<String>)
/set_instance_id(Option<String>)
:
required: trueThe Amazon Web Services Supply Chain instance identifier.
event_id(impl Into<String>)
/set_event_id(Option<String>)
:
required: trueThe unique event identifier.
- On success, responds with
GetDataIntegrationEventOutput
with field(s):event(Option<DataIntegrationEvent>)
:The details of the DataIntegrationEvent returned.
- On failure, responds with
SdkError<GetDataIntegrationEventError>
Source§impl Client
impl Client
Sourcepub fn get_data_integration_flow(&self) -> GetDataIntegrationFlowFluentBuilder
pub fn get_data_integration_flow(&self) -> GetDataIntegrationFlowFluentBuilder
Constructs a fluent builder for the GetDataIntegrationFlow
operation.
- The fluent builder is configurable:
instance_id(impl Into<String>)
/set_instance_id(Option<String>)
:
required: trueThe Amazon Web Services Supply Chain instance identifier.
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the DataIntegrationFlow created.
- On success, responds with
GetDataIntegrationFlowOutput
with field(s):flow(Option<DataIntegrationFlow>)
:The details of the DataIntegrationFlow returned.
- On failure, responds with
SdkError<GetDataIntegrationFlowError>
Source§impl Client
impl Client
Sourcepub fn get_data_integration_flow_execution(
&self,
) -> GetDataIntegrationFlowExecutionFluentBuilder
pub fn get_data_integration_flow_execution( &self, ) -> GetDataIntegrationFlowExecutionFluentBuilder
Constructs a fluent builder for the GetDataIntegrationFlowExecution
operation.
- The fluent builder is configurable:
instance_id(impl Into<String>)
/set_instance_id(Option<String>)
:
required: trueThe AWS Supply Chain instance identifier.
flow_name(impl Into<String>)
/set_flow_name(Option<String>)
:
required: trueThe flow name.
execution_id(impl Into<String>)
/set_execution_id(Option<String>)
:
required: trueThe flow execution identifier.
- On success, responds with
GetDataIntegrationFlowExecutionOutput
with field(s):flow_execution(Option<DataIntegrationFlowExecution>)
:The flow execution details.
- On failure, responds with
SdkError<GetDataIntegrationFlowExecutionError>
Source§impl Client
impl Client
Sourcepub fn get_data_lake_dataset(&self) -> GetDataLakeDatasetFluentBuilder
pub fn get_data_lake_dataset(&self) -> GetDataLakeDatasetFluentBuilder
Constructs a fluent builder for the GetDataLakeDataset
operation.
- The fluent builder is configurable:
instance_id(impl Into<String>)
/set_instance_id(Option<String>)
:
required: trueThe Amazon Web Services Supply Chain instance identifier.
namespace(impl Into<String>)
/set_namespace(Option<String>)
:
required: trueThe namespace of the dataset, besides the custom defined namespace, every instance comes with below pre-defined namespaces:
-
asc - For information on the Amazon Web Services Supply Chain supported datasets see https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html.
-
default - For datasets with custom user-defined schemas.
-
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the dataset. For asc namespace, the name must be one of the supported data entities under https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html.
- On success, responds with
GetDataLakeDatasetOutput
with field(s):dataset(Option<DataLakeDataset>)
:The fetched dataset details.
- On failure, responds with
SdkError<GetDataLakeDatasetError>
Source§impl Client
impl Client
Sourcepub fn get_data_lake_namespace(&self) -> GetDataLakeNamespaceFluentBuilder
pub fn get_data_lake_namespace(&self) -> GetDataLakeNamespaceFluentBuilder
Constructs a fluent builder for the GetDataLakeNamespace
operation.
- The fluent builder is configurable:
instance_id(impl Into<String>)
/set_instance_id(Option<String>)
:
required: trueThe Amazon Web Services Supply Chain instance identifier.
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the namespace. Besides the namespaces user created, you can also specify the pre-defined namespaces:
-
asc - Pre-defined namespace containing Amazon Web Services Supply Chain supported datasets, see https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html.
-
default - Pre-defined namespace containing datasets with custom user-defined schemas.
-
- On success, responds with
GetDataLakeNamespaceOutput
with field(s):namespace(Option<DataLakeNamespace>)
:The fetched namespace details.
- On failure, responds with
SdkError<GetDataLakeNamespaceError>
Source§impl Client
impl Client
Sourcepub fn get_instance(&self) -> GetInstanceFluentBuilder
pub fn get_instance(&self) -> GetInstanceFluentBuilder
Constructs a fluent builder for the GetInstance
operation.
- The fluent builder is configurable:
instance_id(impl Into<String>)
/set_instance_id(Option<String>)
:
required: trueThe AWS Supply Chain instance identifier
- On success, responds with
GetInstanceOutput
with field(s):instance(Option<Instance>)
:The instance resource data details.
- On failure, responds with
SdkError<GetInstanceError>
Source§impl Client
impl Client
Sourcepub fn list_data_integration_events(
&self,
) -> ListDataIntegrationEventsFluentBuilder
pub fn list_data_integration_events( &self, ) -> ListDataIntegrationEventsFluentBuilder
Constructs a fluent builder for the ListDataIntegrationEvents
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
instance_id(impl Into<String>)
/set_instance_id(Option<String>)
:
required: trueThe Amazon Web Services Supply Chain instance identifier.
event_type(DataIntegrationEventType)
/set_event_type(Option<DataIntegrationEventType>)
:
required: falseList data integration events for the specified eventType.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe pagination token to fetch the next page of the data integration events.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseSpecify the maximum number of data integration events to fetch in one paginated request.
- On success, responds with
ListDataIntegrationEventsOutput
with field(s):events(Vec::<DataIntegrationEvent>)
:The list of data integration events.
next_token(Option<String>)
:The pagination token to fetch the next page of the ListDataIntegrationEvents.
- On failure, responds with
SdkError<ListDataIntegrationEventsError>
Source§impl Client
impl Client
Sourcepub fn list_data_integration_flow_executions(
&self,
) -> ListDataIntegrationFlowExecutionsFluentBuilder
pub fn list_data_integration_flow_executions( &self, ) -> ListDataIntegrationFlowExecutionsFluentBuilder
Constructs a fluent builder for the ListDataIntegrationFlowExecutions
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
instance_id(impl Into<String>)
/set_instance_id(Option<String>)
:
required: trueThe AWS Supply Chain instance identifier.
flow_name(impl Into<String>)
/set_flow_name(Option<String>)
:
required: trueThe flow name.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe pagination token to fetch next page of flow executions.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe number to specify the max number of flow executions to fetch in this paginated request.
- On success, responds with
ListDataIntegrationFlowExecutionsOutput
with field(s):flow_executions(Vec::<DataIntegrationFlowExecution>)
:The list of flow executions.
next_token(Option<String>)
:The pagination token to fetch next page of flow executions.
- On failure, responds with
SdkError<ListDataIntegrationFlowExecutionsError>
Source§impl Client
impl Client
Sourcepub fn list_data_integration_flows(
&self,
) -> ListDataIntegrationFlowsFluentBuilder
pub fn list_data_integration_flows( &self, ) -> ListDataIntegrationFlowsFluentBuilder
Constructs a fluent builder for the ListDataIntegrationFlows
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
instance_id(impl Into<String>)
/set_instance_id(Option<String>)
:
required: trueThe Amazon Web Services Supply Chain instance identifier.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe pagination token to fetch the next page of the DataIntegrationFlows.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseSpecify the maximum number of DataIntegrationFlows to fetch in one paginated request.
- On success, responds with
ListDataIntegrationFlowsOutput
with field(s):flows(Vec::<DataIntegrationFlow>)
:The response parameters for ListDataIntegrationFlows.
next_token(Option<String>)
:The pagination token to fetch the next page of the DataIntegrationFlows.
- On failure, responds with
SdkError<ListDataIntegrationFlowsError>
Source§impl Client
impl Client
Sourcepub fn list_data_lake_datasets(&self) -> ListDataLakeDatasetsFluentBuilder
pub fn list_data_lake_datasets(&self) -> ListDataLakeDatasetsFluentBuilder
Constructs a fluent builder for the ListDataLakeDatasets
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
instance_id(impl Into<String>)
/set_instance_id(Option<String>)
:
required: trueThe Amazon Web Services Supply Chain instance identifier.
namespace(impl Into<String>)
/set_namespace(Option<String>)
:
required: trueThe namespace of the dataset, besides the custom defined namespace, every instance comes with below pre-defined namespaces:
-
asc - For information on the Amazon Web Services Supply Chain supported datasets see https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html.
-
default - For datasets with custom user-defined schemas.
-
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe pagination token to fetch next page of datasets.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe max number of datasets to fetch in this paginated request.
- On success, responds with
ListDataLakeDatasetsOutput
with field(s):datasets(Vec::<DataLakeDataset>)
:The list of fetched dataset details.
next_token(Option<String>)
:The pagination token to fetch next page of datasets.
- On failure, responds with
SdkError<ListDataLakeDatasetsError>
Source§impl Client
impl Client
Sourcepub fn list_data_lake_namespaces(&self) -> ListDataLakeNamespacesFluentBuilder
pub fn list_data_lake_namespaces(&self) -> ListDataLakeNamespacesFluentBuilder
Constructs a fluent builder for the ListDataLakeNamespaces
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
instance_id(impl Into<String>)
/set_instance_id(Option<String>)
:
required: trueThe Amazon Web Services Supply Chain instance identifier.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe pagination token to fetch next page of namespaces.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe max number of namespaces to fetch in this paginated request.
- On success, responds with
ListDataLakeNamespacesOutput
with field(s):namespaces(Vec::<DataLakeNamespace>)
:The list of fetched namespace details. Noted it only contains custom namespaces, pre-defined namespaces are not included.
next_token(Option<String>)
:The pagination token to fetch next page of namespaces.
- On failure, responds with
SdkError<ListDataLakeNamespacesError>
Source§impl Client
impl Client
Sourcepub fn list_instances(&self) -> ListInstancesFluentBuilder
pub fn list_instances(&self) -> ListInstancesFluentBuilder
Constructs a fluent builder for the ListInstances
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe pagination token to fetch the next page of instances.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseSpecify the maximum number of instances to fetch in this paginated request.
instance_name_filter(impl Into<String>)
/set_instance_name_filter(Option<Vec::<String>>)
:
required: falseThe filter to ListInstances based on their names.
instance_state_filter(InstanceState)
/set_instance_state_filter(Option<Vec::<InstanceState>>)
:
required: falseThe filter to ListInstances based on their state.
- On success, responds with
ListInstancesOutput
with field(s):instances(Vec::<Instance>)
:The list of instances resource data details.
next_token(Option<String>)
:The pagination token to fetch the next page of instances.
- On failure, responds with
SdkError<ListInstancesError>
Source§impl Client
impl Client
Constructs a fluent builder for the ListTagsForResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe Amazon Web Services Supply chain resource ARN that needs tags to be listed.
- On success, responds with
ListTagsForResourceOutput
with field(s):tags(HashMap::<String, String>)
:The tags added to an Amazon Web Services Supply Chain resource.
- On failure, responds with
SdkError<ListTagsForResourceError>
Source§impl Client
impl Client
Sourcepub fn send_data_integration_event(
&self,
) -> SendDataIntegrationEventFluentBuilder
pub fn send_data_integration_event( &self, ) -> SendDataIntegrationEventFluentBuilder
Constructs a fluent builder for the SendDataIntegrationEvent
operation.
- The fluent builder is configurable:
instance_id(impl Into<String>)
/set_instance_id(Option<String>)
:
required: trueThe AWS Supply Chain instance identifier.
event_type(DataIntegrationEventType)
/set_event_type(Option<DataIntegrationEventType>)
:
required: trueThe data event type.
-
scn.data.dataset - Send data directly to any specified dataset.
-
scn.data.supplyplan - Send data to supply_plan dataset.
-
scn.data.shipmentstoporder - Send data to shipment_stop_order dataset.
-
scn.data.shipmentstop - Send data to shipment_stop dataset.
-
scn.data.shipment - Send data to shipment dataset.
-
scn.data.reservation - Send data to reservation dataset.
-
scn.data.processproduct - Send data to process_product dataset.
-
scn.data.processoperation - Send data to process_operation dataset.
-
scn.data.processheader - Send data to process_header dataset.
-
scn.data.forecast - Send data to forecast dataset.
-
scn.data.inventorylevel - Send data to inv_level dataset.
-
scn.data.inboundorder - Send data to inbound_order dataset.
-
scn.data.inboundorderline - Send data to inbound_order_line dataset.
-
scn.data.inboundorderlineschedule - Send data to inbound_order_line_schedule dataset.
-
scn.data.outboundorderline - Send data to outbound_order_line dataset.
-
scn.data.outboundshipment - Send data to outbound_shipment dataset.
-
data(impl Into<String>)
/set_data(Option<String>)
:
required: trueThe data payload of the event, should follow the data schema of the target dataset, or see Data entities supported in AWS Supply Chain. To send single data record, use JsonObject format; to send multiple data records, use JsonArray format.
Note that for AWS Supply Chain dataset under asc namespace, it has a connection_id internal field that is not allowed to be provided by client directly, they will be auto populated.
event_group_id(impl Into<String>)
/set_event_group_id(Option<String>)
:
required: trueEvent identifier (for example, orderId for InboundOrder) used for data sharding or partitioning. Noted under one eventGroupId of same eventType and instanceId, events are processed sequentially in the order they are received by the server.
event_timestamp(DateTime)
/set_event_timestamp(Option<DateTime>)
:
required: falseThe timestamp (in epoch seconds) associated with the event. If not provided, it will be assigned with current timestamp.
client_token(impl Into<String>)
/set_client_token(Option<String>)
:
required: falseThe idempotent client token. The token is active for 8 hours, and within its lifetime, it ensures the request completes only once upon retry with same client token. If omitted, the AWS SDK generates a unique value so that AWS SDK can safely retry the request upon network errors.
dataset_target(DataIntegrationEventDatasetTargetConfiguration)
/set_dataset_target(Option<DataIntegrationEventDatasetTargetConfiguration>)
:
required: falseThe target dataset configuration for scn.data.dataset event type.
- On success, responds with
SendDataIntegrationEventOutput
with field(s):event_id(String)
:The unique event identifier.
- On failure, responds with
SdkError<SendDataIntegrationEventError>
Source§impl Client
impl Client
Sourcepub fn tag_resource(&self) -> TagResourceFluentBuilder
pub fn tag_resource(&self) -> TagResourceFluentBuilder
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe Amazon Web Services Supply chain resource ARN that needs to be tagged.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: trueThe tags of the Amazon Web Services Supply chain resource to be created.
- On success, responds with
TagResourceOutput
- On failure, responds with
SdkError<TagResourceError>
Source§impl Client
impl Client
Sourcepub fn untag_resource(&self) -> UntagResourceFluentBuilder
pub fn untag_resource(&self) -> UntagResourceFluentBuilder
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe Amazon Web Services Supply chain resource ARN that needs to be untagged.
tag_keys(impl Into<String>)
/set_tag_keys(Option<Vec::<String>>)
:
required: trueThe list of tag keys to be deleted for an Amazon Web Services Supply Chain resource.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
Source§impl Client
impl Client
Sourcepub fn update_data_integration_flow(
&self,
) -> UpdateDataIntegrationFlowFluentBuilder
pub fn update_data_integration_flow( &self, ) -> UpdateDataIntegrationFlowFluentBuilder
Constructs a fluent builder for the UpdateDataIntegrationFlow
operation.
- The fluent builder is configurable:
instance_id(impl Into<String>)
/set_instance_id(Option<String>)
:
required: trueThe Amazon Web Services Supply Chain instance identifier.
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the DataIntegrationFlow to be updated.
sources(DataIntegrationFlowSource)
/set_sources(Option<Vec::<DataIntegrationFlowSource>>)
:
required: falseThe new source configurations for the DataIntegrationFlow.
transformation(DataIntegrationFlowTransformation)
/set_transformation(Option<DataIntegrationFlowTransformation>)
:
required: falseThe new transformation configurations for the DataIntegrationFlow.
target(DataIntegrationFlowTarget)
/set_target(Option<DataIntegrationFlowTarget>)
:
required: falseThe new target configurations for the DataIntegrationFlow.
- On success, responds with
UpdateDataIntegrationFlowOutput
with field(s):flow(Option<DataIntegrationFlow>)
:The details of the updated DataIntegrationFlow.
- On failure, responds with
SdkError<UpdateDataIntegrationFlowError>
Source§impl Client
impl Client
Sourcepub fn update_data_lake_dataset(&self) -> UpdateDataLakeDatasetFluentBuilder
pub fn update_data_lake_dataset(&self) -> UpdateDataLakeDatasetFluentBuilder
Constructs a fluent builder for the UpdateDataLakeDataset
operation.
- The fluent builder is configurable:
instance_id(impl Into<String>)
/set_instance_id(Option<String>)
:
required: trueThe Amazon Web Services Chain instance identifier.
namespace(impl Into<String>)
/set_namespace(Option<String>)
:
required: trueThe namespace of the dataset, besides the custom defined namespace, every instance comes with below pre-defined namespaces:
-
asc - For information on the Amazon Web Services Supply Chain supported datasets see https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html.
-
default - For datasets with custom user-defined schemas.
-
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the dataset. For asc namespace, the name must be one of the supported data entities under https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe updated description of the data lake dataset.
- On success, responds with
UpdateDataLakeDatasetOutput
with field(s):dataset(Option<DataLakeDataset>)
:The updated dataset details.
- On failure, responds with
SdkError<UpdateDataLakeDatasetError>
Source§impl Client
impl Client
Sourcepub fn update_data_lake_namespace(&self) -> UpdateDataLakeNamespaceFluentBuilder
pub fn update_data_lake_namespace(&self) -> UpdateDataLakeNamespaceFluentBuilder
Constructs a fluent builder for the UpdateDataLakeNamespace
operation.
- The fluent builder is configurable:
instance_id(impl Into<String>)
/set_instance_id(Option<String>)
:
required: trueThe Amazon Web Services Chain instance identifier.
name(impl Into<String>)
/set_name(Option<String>)
:
required: trueThe name of the namespace. Noted you cannot update namespace with name starting with asc, default, scn, aws, amazon, amzn
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe updated description of the data lake namespace.
- On success, responds with
UpdateDataLakeNamespaceOutput
with field(s):namespace(Option<DataLakeNamespace>)
:The updated namespace details.
- On failure, responds with
SdkError<UpdateDataLakeNamespaceError>
Source§impl Client
impl Client
Sourcepub fn update_instance(&self) -> UpdateInstanceFluentBuilder
pub fn update_instance(&self) -> UpdateInstanceFluentBuilder
Constructs a fluent builder for the UpdateInstance
operation.
- The fluent builder is configurable:
instance_id(impl Into<String>)
/set_instance_id(Option<String>)
:
required: trueThe AWS Supply Chain instance identifier.
instance_name(impl Into<String>)
/set_instance_name(Option<String>)
:
required: falseThe AWS Supply Chain instance name.
instance_description(impl Into<String>)
/set_instance_description(Option<String>)
:
required: falseThe AWS Supply Chain instance description.
- On success, responds with
UpdateInstanceOutput
with field(s):instance(Option<Instance>)
:The instance resource data details.
- On failure, responds with
SdkError<UpdateInstanceError>
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> 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);