Class ResourcePolicy
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ResourcePolicy.Builder,ResourcePolicy>
A policy enabling one or more entities to put logs to a log group in this account.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourcePolicy.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final LongTimestamp showing when this policy was last updated, expressed as the number of milliseconds afterJan 1, 1970 00:00:00 UTC.final StringThe details of the policy.final StringThe name of the resource policy.final PolicyScopeSpecifies scope of the resource policy.final StringSpecifies scope of the resource policy.final StringThe ARN of the CloudWatch Logs resource to which the resource policy is attached.final StringThe revision ID of the resource policy.static Class<? extends ResourcePolicy.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
policyName
The name of the resource policy.
- Returns:
- The name of the resource policy.
-
policyDocument
The details of the policy.
- Returns:
- The details of the policy.
-
lastUpdatedTime
Timestamp showing when this policy was last updated, expressed as the number of milliseconds after
Jan 1, 1970 00:00:00 UTC.- Returns:
- Timestamp showing when this policy was last updated, expressed as the number of milliseconds after
Jan 1, 1970 00:00:00 UTC.
-
policyScope
Specifies scope of the resource policy. Valid values are ACCOUNT or RESOURCE.
If the service returns an enum value that is not available in the current SDK version,
policyScopewill returnPolicyScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompolicyScopeAsString().- Returns:
- Specifies scope of the resource policy. Valid values are ACCOUNT or RESOURCE.
- See Also:
-
policyScopeAsString
Specifies scope of the resource policy. Valid values are ACCOUNT or RESOURCE.
If the service returns an enum value that is not available in the current SDK version,
policyScopewill returnPolicyScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompolicyScopeAsString().- Returns:
- Specifies scope of the resource policy. Valid values are ACCOUNT or RESOURCE.
- See Also:
-
resourceArn
The ARN of the CloudWatch Logs resource to which the resource policy is attached. Only populated for resource-scoped policies.
- Returns:
- The ARN of the CloudWatch Logs resource to which the resource policy is attached. Only populated for resource-scoped policies.
-
revisionId
The revision ID of the resource policy. Only populated for resource-scoped policies.
- Returns:
- The revision ID of the resource policy. Only populated for resource-scoped policies.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<ResourcePolicy.Builder,ResourcePolicy>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-