Class ChangeGuardrail
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ChangeGuardrail.Builder,ChangeGuardrail>
A Change Guardrail and its status. A Change Guardrail checks each change to the records in a hosted zone, and rejects the change if the check fails.
When you submit a ChangeResourceRecordSets request, Route 53 checks each change against every guardrail
that is turned on. If a check fails, Route 53 rejects the whole request and returns an error that identifies the
guardrail. If every check passes, Route 53 applies the changes.
For example, suppose that ALIAS_TARGET_CHECK is turned on, and an alias record points to
www.example.com. If you try to delete www.example.com, Route 53 rejects the request. To
delete the record, first delete or change the alias record.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ChangeGuardrail.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final ChangeGuardrailNamename()The name of the guardrail.final StringThe name of the guardrail.static Class<? extends ChangeGuardrail.Builder> final ChangeGuardrailStatusstatus()The status of the guardrail.final StringThe status of the guardrail.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
name
The name of the guardrail. Valid values are the following:
- NS_FORMAT_CHECK
-
This guardrail rejects an NS record whose value looks like a Route 53 name server but isn't one.
- NS_DELEGATION_AUTHORITY_CHECK
-
This guardrail rejects an NS record that delegates a subdomain to Route 53 name servers that don't host it.
This guardrail applies only to public hosted zones.
- NS_OCCLUSION_CHECK
-
This guardrail rejects a change that leaves records under a delegated subdomain, where resolvers never use them.
- ALIAS_TARGET_CHECK
-
This guardrail rejects deleting a record that an alias record in the same hosted zone points to.
- ACTIVE_RECORD_CHECK
-
This guardrail rejects deleting a record that still receives DNS queries, if no other record with the same name and type remains to answer them.
- ACTIVE_DELEGATION_CHECK
-
This guardrail rejects deleting the NS record for a subdomain while resolvers are still referred to it.
The tier of the hosted zone determines which guardrails it includes and which ones you can turn on.
If the service returns an enum value that is not available in the current SDK version,
namewill returnChangeGuardrailName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnameAsString().- Returns:
- The name of the guardrail. Valid values are the following:
- NS_FORMAT_CHECK
-
This guardrail rejects an NS record whose value looks like a Route 53 name server but isn't one.
- NS_DELEGATION_AUTHORITY_CHECK
-
This guardrail rejects an NS record that delegates a subdomain to Route 53 name servers that don't host it.
This guardrail applies only to public hosted zones.
- NS_OCCLUSION_CHECK
-
This guardrail rejects a change that leaves records under a delegated subdomain, where resolvers never use them.
- ALIAS_TARGET_CHECK
-
This guardrail rejects deleting a record that an alias record in the same hosted zone points to.
- ACTIVE_RECORD_CHECK
-
This guardrail rejects deleting a record that still receives DNS queries, if no other record with the same name and type remains to answer them.
- ACTIVE_DELEGATION_CHECK
-
This guardrail rejects deleting the NS record for a subdomain while resolvers are still referred to it.
The tier of the hosted zone determines which guardrails it includes and which ones you can turn on.
- See Also:
-
nameAsString
The name of the guardrail. Valid values are the following:
- NS_FORMAT_CHECK
-
This guardrail rejects an NS record whose value looks like a Route 53 name server but isn't one.
- NS_DELEGATION_AUTHORITY_CHECK
-
This guardrail rejects an NS record that delegates a subdomain to Route 53 name servers that don't host it.
This guardrail applies only to public hosted zones.
- NS_OCCLUSION_CHECK
-
This guardrail rejects a change that leaves records under a delegated subdomain, where resolvers never use them.
- ALIAS_TARGET_CHECK
-
This guardrail rejects deleting a record that an alias record in the same hosted zone points to.
- ACTIVE_RECORD_CHECK
-
This guardrail rejects deleting a record that still receives DNS queries, if no other record with the same name and type remains to answer them.
- ACTIVE_DELEGATION_CHECK
-
This guardrail rejects deleting the NS record for a subdomain while resolvers are still referred to it.
The tier of the hosted zone determines which guardrails it includes and which ones you can turn on.
If the service returns an enum value that is not available in the current SDK version,
namewill returnChangeGuardrailName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnameAsString().- Returns:
- The name of the guardrail. Valid values are the following:
- NS_FORMAT_CHECK
-
This guardrail rejects an NS record whose value looks like a Route 53 name server but isn't one.
- NS_DELEGATION_AUTHORITY_CHECK
-
This guardrail rejects an NS record that delegates a subdomain to Route 53 name servers that don't host it.
This guardrail applies only to public hosted zones.
- NS_OCCLUSION_CHECK
-
This guardrail rejects a change that leaves records under a delegated subdomain, where resolvers never use them.
- ALIAS_TARGET_CHECK
-
This guardrail rejects deleting a record that an alias record in the same hosted zone points to.
- ACTIVE_RECORD_CHECK
-
This guardrail rejects deleting a record that still receives DNS queries, if no other record with the same name and type remains to answer them.
- ACTIVE_DELEGATION_CHECK
-
This guardrail rejects deleting the NS record for a subdomain while resolvers are still referred to it.
The tier of the hosted zone determines which guardrails it includes and which ones you can turn on.
- See Also:
-
status
The status of the guardrail. Valid values are the following:
- ENABLED
-
ENABLEDmeans that the guardrail is turned on. - DISABLED
-
DISABLEDmeans that the guardrail is turned off.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnChangeGuardrailStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the guardrail. Valid values are the following:
- ENABLED
-
ENABLEDmeans that the guardrail is turned on. - DISABLED
-
DISABLEDmeans that the guardrail is turned off.
- See Also:
-
statusAsString
The status of the guardrail. Valid values are the following:
- ENABLED
-
ENABLEDmeans that the guardrail is turned on. - DISABLED
-
DISABLEDmeans that the guardrail is turned off.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnChangeGuardrailStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the guardrail. Valid values are the following:
- ENABLED
-
ENABLEDmeans that the guardrail is turned on. - DISABLED
-
DISABLEDmeans that the guardrail is turned off.
- See Also:
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ChangeGuardrail.Builder,ChangeGuardrail> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-