Class Policy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.sns.FilterOrPolicy
software.amazon.awscdk.services.sns.Policy
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-21T06:34:16.445Z") @Stability(Stable) public class Policy extends FilterOrPolicy
Policy Implementation of FilterOrPolicy.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.sns.*;
 FilterOrPolicy filterOrPolicy;
 Policy policy = new Policy(Map.of(
         "policyDocKey", filterOrPolicy));
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    Policy constructor.
    protected
    Policy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    Policy(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    policy argument to construct.
    Type used in DFS buildFilterPolicyWithMessageBody to determine json value type.

    Methods inherited from class software.amazon.awscdk.services.sns.FilterOrPolicy

    filter, isFilter, isPolicy, policy

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • Policy

      protected Policy(software.amazon.jsii.JsiiObjectRef objRef)
    • Policy

      protected Policy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • Policy

      @Stability(Stable) public Policy(@NotNull Map<String,FilterOrPolicy> policyDoc)
      Policy constructor.

      Parameters:
      policyDoc - policy argument to construct. This parameter is required.
  • Method Details

    • getPolicyDoc

      @Stability(Stable) @NotNull public Map<String,FilterOrPolicy> getPolicyDoc()
      policy argument to construct.
    • getType

      @Stability(Stable) @NotNull public FilterOrPolicyType getType()
      Type used in DFS buildFilterPolicyWithMessageBody to determine json value type.
      Specified by:
      getType in class FilterOrPolicy