describe_protection
async
¶
describe_protection(
*,
config_overrides: Optional[AsyncShieldClientConfig] = None,
protection_id: Optional[ProtectionId] = None,
resource_arn: Optional[ResourceArn] = None,
) -> DescribeProtectionResponse
Lists the details of a Protection object.
Parameters:
-
protection_id(Optional[ProtectionId], default:None) –The unique identifier (ID) for the Protection object to describe. You must provide either the
ResourceArnof the protected resource or theProtectionIDof the protection, but not both. -
resource_arn(Optional[ResourceArn], default:None) –The ARN (Amazon Resource Name) of the protected Amazon Web Services resource. You must provide either the
ResourceArnof the protected resource or theProtectionIDof the protection, but not both.
Raises:
-
InternalErrorException–Exception that indicates that a problem occurred with the service infrastructure. You can retry the request.
-
InvalidParameterException–Exception that indicates that the parameters passed to the API are invalid. If available, this exception includes details in additional properties.
-
ResourceNotFoundException–Exception indicating the specified resource does not exist. If available, this exception includes details in additional properties.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_shield/_services/async_shield.py
1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 | |