create_vpc_connection
async
¶
create_vpc_connection(
aws_account_id: AwsAccountId,
vpc_connection_id: VPCConnectionResourceIdRestricted,
name: ResourceName,
subnet_ids: SubnetIdList,
security_group_ids: SecurityGroupIdList,
role_arn: RoleArn,
*,
config_overrides: Optional[AsyncQuickSightClientConfig] = None,
dns_resolvers: Optional[DnsResolverList] = None,
tags: Optional[TagList] = None,
) -> CreateVPCConnectionResponse
Creates a new VPC connection.
Parameters:
-
aws_account_id(AwsAccountId) –The Amazon Web Services account ID of the account where you want to create a new VPC connection.
-
vpc_connection_id(VPCConnectionResourceIdRestricted) –The ID of the VPC connection that you're creating. This ID is a unique identifier for each Amazon Web Services Region in an Amazon Web Services account.
-
name(ResourceName) –The display name for the VPC connection.
-
subnet_ids(SubnetIdList) –A list of subnet IDs for the VPC connection.
-
security_group_ids(SecurityGroupIdList) –A list of security group IDs for the VPC connection.
-
dns_resolvers(Optional[DnsResolverList], default:None) –A list of IP addresses of DNS resolver endpoints for the VPC connection.
-
role_arn(RoleArn) –The IAM role to associate with the VPC connection.
-
tags(Optional[TagList], default:None) –A map of the key-value pairs for the resource tag or tags assigned to the VPC connection.
Raises:
-
AccessDeniedException–You don't have access to this item. The provided credentials couldn't be validated. You might not be authorized to carry out the request. Make sure that your account is authorized to use the Amazon Quick Sight service, that your policies have the correct permissions, and that you are using the correct credentials.
-
ConflictException–Updating or deleting a resource can cause an inconsistent state.
-
InternalFailureException–An internal failure occurred.
-
InvalidParameterValueException–One or more parameters has a value that isn't valid.
-
LimitExceededException–A limit is exceeded.
-
ResourceExistsException–The resource specified already exists.
-
ThrottlingException–Access is throttled.
-
UnsupportedUserEditionException–This error indicates that you are calling an operation on an Amazon Quick Suite subscription where the edition doesn't include support for that operation. Amazon Quick Suite currently has Standard Edition and Enterprise Edition. Not every operation and capability is available in every edition.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_quicksight/_services/async_quick_sight.py
4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 | |