create_source_network
¶
create_source_network(
vpc_id: VpcID,
origin_account_id: AccountID,
origin_region: AwsRegion,
*,
config_overrides: Optional[drsClientConfig] = 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/drs.py
3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 | |