CreatePolicyRequest

public struct CreatePolicyRequest : AWSShape

Undocumented

  • Declaration

    Swift

    public static var _members: [AWSShapeMember]
  • The policy text content to add to the new policy. The text that you supply must adhere to the rules of the policy type you specify in the Type parameter.

    Declaration

    Swift

    public let content: String
  • An optional description to assign to the policy.

    Declaration

    Swift

    public let description: String
  • The friendly name to assign to the policy. The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.

    Declaration

    Swift

    public let name: String
  • The type of policy to create. You can specify one of the following values: AISERVICES_OPT_OUT_POLICY BACKUP_POLICY SERVICE_CONTROL_POLICY TAG_POLICY

    Declaration

    Swift

    public let type: PolicyType
  • Undocumented

    Declaration

    Swift

    public init(content: String, description: String, name: String, type: PolicyType)
  • Declaration

    Swift

    public func validate(name: String) throws