AWSIoTCreatePolicyVersionRequest

Objective-C

@interface AWSIoTCreatePolicyVersionRequest

Swift

class AWSIoTCreatePolicyVersionRequest

The input for the CreatePolicyVersion operation.

Required parameters: [policyName, policyDocument]

  • The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespace.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable policyDocument;

    Swift

    var policyDocument: String? { get set }
  • The policy name.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable policyName;

    Swift

    var policyName: String? { get set }
  • Specifies whether the policy version is set as the default. When this parameter is true, the new policy version becomes the operative version (that is, the version that is in effect for the certificates to which the policy is attached).

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable setAsDefault;

    Swift

    var setAsDefault: NSNumber? { get set }