CreatePolicyRequest: {
    applicationId?: string;
    description: string;
    groupId?: string;
    name?: string;
    noPrincipal?: boolean;
    organizationId?: string;
    rules?: IAM.v1alpha1.RuleSpecs[];
    tags?: string[];
    userId?: string;
}

Type declaration

  • OptionalapplicationId?: string

    ID of application attributed to the policy.

    One-of ('principal'): at most one of 'userId', 'groupId', 'applicationId', 'noPrincipal' could be set.

  • description: string

    Description of the policy to create (max length is 200 characters).

  • OptionalgroupId?: string

    ID of group attributed to the policy.

    One-of ('principal'): at most one of 'userId', 'groupId', 'applicationId', 'noPrincipal' could be set.

  • Optionalname?: string

    Name of the policy to create (max length is 64 characters).

  • OptionalnoPrincipal?: boolean

    Defines whether or not a policy is attributed to a principal.

    One-of ('principal'): at most one of 'userId', 'groupId', 'applicationId', 'noPrincipal' could be set.

  • OptionalorganizationId?: string

    ID of the Organization.

  • Optionalrules?: IAM.v1alpha1.RuleSpecs[]

    Rules of the policy to create.

  • Optionaltags?: string[]

    Tags associated with the policy (maximum of 10 tags).

  • OptionaluserId?: string

    ID of user attributed to the policy.

    One-of ('principal'): at most one of 'userId', 'groupId', 'applicationId', 'noPrincipal' could be set.