Skip to content

update_profile_resource_association async

update_profile_resource_association(
    profile_resource_association_id: ResourceId,
    *,
    config_overrides: Optional[AsyncRoute53ProfilesClientConfig] = None,
    name: Optional[Name] = None,
    resource_properties: Optional[ResourceProperties] = None,
) -> UpdateProfileResourceAssociationResponse

Updates the specified Route 53 Profile resourse association.

Parameters:

  • profile_resource_association_id (ResourceId) –

    ID of the resource association.

  • name (Optional[Name], default: None ) –

    Name of the resource association.

  • resource_properties (Optional[ResourceProperties], default: None ) –

    If you are adding a DNS Firewall rule group, include also a priority. The priority indicates the processing order for the rule groups, starting with the priority assinged the lowest value.

    The allowed values for priority are between 100 and 9900.

Raises:

Source code in docs_src/capo_route53profiles/_services/async_route53_profiles.py
async def update_profile_resource_association(
    self,
    profile_resource_association_id: "capo_route53profiles.types.resource_id.ResourceId",
    *,
    config_overrides: Optional[AsyncRoute53ProfilesClientConfig] = None,
    name: Optional["capo_route53profiles.types.name.Name"] = None,
    resource_properties: Optional[
        "capo_route53profiles.types.resource_properties.ResourceProperties"
    ] = None,
) -> "capo_route53profiles.types.update_profile_resource_association_response.UpdateProfileResourceAssociationResponse":
    """<p> Updates the specified Route 53 Profile resourse association. </p>

    Args:
        profile_resource_association_id: <p> ID of the resource association. </p>
        name: <p> Name of the resource association. </p>
        resource_properties: <p> If you are adding a DNS Firewall rule group, include also a priority. The priority indicates the processing order for the rule groups, starting with the priority assinged the lowest value. </p> <p>The allowed values for priority are between 100 and 9900.</p>

    Raises:
        capo_route53profiles.errors.access_denied_exception.AccessDeniedException: <p> The current account doesn't have the IAM permissions required to perform the specified operation. </p>
        capo_route53profiles.errors.conflict_exception.ConflictException: <p> The request you submitted conflicts with an existing request. </p>
        capo_route53profiles.errors.internal_service_error_exception.InternalServiceErrorException: <p> An internal server error occured. Retry your request. </p>
        capo_route53profiles.errors.invalid_parameter_exception.InvalidParameterException: <p> One or more parameters in this request are not valid. </p>
        capo_route53profiles.errors.limit_exceeded_exception.LimitExceededException: <p> The request caused one or more limits to be exceeded. </p>
        capo_route53profiles.errors.resource_not_found_exception.ResourceNotFoundException: <p> The resource you are associating is not found. </p>
        capo_route53profiles.errors.throttling_exception.ThrottlingException: <p> The request was throttled. Try again in a few minutes. </p>
        capo_route53profiles.errors.validation_exception.ValidationException: <p> You have provided an invalid command. </p>
        capo_route53profiles.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_route53profiles.types.update_profile_resource_association_request.UpdateProfileResourceAssociationRequest]",
    ) -> AsyncOperationResponse[
        "capo_route53profiles.types.update_profile_resource_association_response.UpdateProfileResourceAssociationResponse"
    ]:
        import capo_route53profiles._operations.route53_profiles.update_profile_resource_association

        (
            output,
            http_response,
        ) = await capo_route53profiles._operations.route53_profiles.update_profile_resource_association.async_update_profile_resource_association(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateProfileResourceAssociation")
    )
    input_: capo_route53profiles.types.update_profile_resource_association_request.UpdateProfileResourceAssociationRequest = {
        "profile_resource_association_id": profile_resource_association_id
    }
    if name is not None:
        input_["name"] = name
    if resource_properties is not None:
        input_["resource_properties"] = resource_properties

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output