create_source_network
async
¶
create_source_network(
vpc_id: VpcID,
origin_account_id: AccountID,
origin_region: AwsRegion,
*,
config_overrides: Optional[AsyncdrsClientConfig] = None,
tags: Optional[TagsMap] = None,
) -> CreateSourceNetworkResponse
Create a new Source Network resource for a provided VPC ID.
Parameters:
-
vpc_id(VpcID) –Which VPC ID to protect.
-
origin_account_id(AccountID) –Account containing the VPC to protect.
-
origin_region(AwsRegion) –Region containing the VPC to protect.
-
tags(Optional[TagsMap], default:None) –A set of tags to be associated with the Source Network resource.
Raises:
-
ConflictException–The request could not be completed due to a conflict with the current state of the target resource.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure.
-
ResourceNotFoundException–The resource for this operation was not found.
-
ServiceQuotaExceededException–The request could not be completed because its exceeded the service quota.
-
ThrottlingException–The request was denied due to request throttling.
-
UninitializedAccountException–The account performing the request has not been initialized.
-
ValidationException–The input fails to satisfy the constraints specified by the AWS service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_drs/_services/async_drs.py
4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 | |