create_access_log_subscription
async
¶
create_access_log_subscription(
resource_identifier: ResourceIdentifier,
destination_arn: AccessLogDestinationArn,
*,
config_overrides: Optional[AsyncVPCLatticeClientConfig] = None,
client_token: Optional[ClientToken] = None,
service_network_log_type: Optional[ServiceNetworkLogType] = None,
tags: Optional[TagMap] = None,
) -> CreateAccessLogSubscriptionResponse
Enables access logs to be sent to Amazon CloudWatch, Amazon S3, and Amazon Kinesis Data Firehose. The service network owner can use the access logs to audit the services in the network. The service network owner can only see access logs from clients and services that are associated with their service network. Access log entries represent traffic originated from VPCs associated with that network. For more information, see Access logs in the Amazon VPC Lattice User Guide.
Parameters:
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token and parameters, the retry succeeds without performing any actions. If the parameters aren't identical, the retry fails.
-
resource_identifier(ResourceIdentifier) –The ID or ARN of the service network or service.
-
destination_arn(AccessLogDestinationArn) –The Amazon Resource Name (ARN) of the destination. The supported destination types are CloudWatch Log groups, Kinesis Data Firehose delivery streams, and Amazon S3 buckets.
-
service_network_log_type(Optional[ServiceNetworkLogType], default:None) –The type of log that monitors your Amazon VPC Lattice service networks.
-
tags(Optional[TagMap], default:None) –The tags for the access log subscription.
Raises:
-
AccessDeniedException–The user does not have sufficient access to perform this action.
-
ConflictException–The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.
-
InternalServerException–An unexpected error occurred while processing the request.
-
ResourceNotFoundException–The request references a resource that does not exist.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–The input does not satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_vpc_lattice/_services/async_vpc_lattice.py
1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 | |