Class IamDenyPolicyRulesDenyRule.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • deniedPermissions

        @Stability(Stable)
        public IamDenyPolicyRulesDenyRule.Builder deniedPermissions​(List<String> deniedPermissions)
        Parameters:
        deniedPermissions - The permissions that are explicitly denied by this rule. Each permission uses the format '{service-fqdn}/{resource}.{verb}', where '{service-fqdn}' is the fully qualified domain name for the service. For example, 'iam.googleapis.com/roles.list'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/iam_deny_policy#denied_permissions IamDenyPolicy#denied_permissions}
        Returns:
        this
      • deniedPrincipals

        @Stability(Stable)
        public IamDenyPolicyRulesDenyRule.Builder deniedPrincipals​(List<String> deniedPrincipals)
        Parameters:
        deniedPrincipals - The identities that are prevented from using one or more permissions on Google Cloud resources. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/iam_deny_policy#denied_principals IamDenyPolicy#denied_principals}
        Returns:
        this
      • exceptionPermissions

        @Stability(Stable)
        public IamDenyPolicyRulesDenyRule.Builder exceptionPermissions​(List<String> exceptionPermissions)
        Parameters:
        exceptionPermissions - Specifies the permissions that this rule excludes from the set of denied permissions given by deniedPermissions. If a permission appears in deniedPermissions and in exceptionPermissions then it will not be denied. The excluded permissions can be specified using the same syntax as deniedPermissions. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/iam_deny_policy#exception_permissions IamDenyPolicy#exception_permissions}
        Returns:
        this
      • exceptionPrincipals

        @Stability(Stable)
        public IamDenyPolicyRulesDenyRule.Builder exceptionPrincipals​(List<String> exceptionPrincipals)
        Parameters:
        exceptionPrincipals - The identities that are excluded from the deny rule, even if they are listed in the deniedPrincipals. For example, you could add a Google group to the deniedPrincipals, then exclude specific users who belong to that group. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/iam_deny_policy#exception_principals IamDenyPolicy#exception_principals}
        Returns:
        this