1. Packages
  2. Ibm Provider
  3. API Docs
  4. getIamServicePolicy
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getIamServicePolicy

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Retrieve information about an IAM service policy. For more information, about IAM role action, see managing access to resources.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const policy = new ibm.IamServicePolicy("policy", {
        iamServiceId: "ServiceId-d7bec597-4726-451f-8a63-e62e6f19c32c",
        roles: [
            "Manager",
            "Viewer",
            "Administrator",
        ],
        resources: {
            service: "kms",
            region: "us-south",
            resourceInstanceId: ibm_resource_instance.instance.id.split(":")[7],
        },
    });
    const testaccDsServicePolicy = policy.iamServiceId.apply(iamServiceId => ibm.getIamServicePolicyOutput({
        iamServiceId: iamServiceId,
        transactionId: "terrformServicePolicy",
    }));
    
    import pulumi
    import pulumi_ibm as ibm
    
    policy = ibm.IamServicePolicy("policy",
        iam_service_id="ServiceId-d7bec597-4726-451f-8a63-e62e6f19c32c",
        roles=[
            "Manager",
            "Viewer",
            "Administrator",
        ],
        resources={
            "service": "kms",
            "region": "us-south",
            "resource_instance_id": ibm_resource_instance["instance"]["id"].split(":")[7],
        })
    testacc_ds_service_policy = policy.iam_service_id.apply(lambda iam_service_id: ibm.get_iam_service_policy_output(iam_service_id=iam_service_id,
        transaction_id="terrformServicePolicy"))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		policy, err := ibm.NewIamServicePolicy(ctx, "policy", &ibm.IamServicePolicyArgs{
    			IamServiceId: pulumi.String("ServiceId-d7bec597-4726-451f-8a63-e62e6f19c32c"),
    			Roles: pulumi.StringArray{
    				pulumi.String("Manager"),
    				pulumi.String("Viewer"),
    				pulumi.String("Administrator"),
    			},
    			Resources: &ibm.IamServicePolicyResourcesArgs{
    				Service:            pulumi.String("kms"),
    				Region:             pulumi.String("us-south"),
    				ResourceInstanceId: pulumi.String("TODO: call element"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_ = policy.IamServiceId.ApplyT(func(iamServiceId *string) (ibm.GetIamServicePolicyResult, error) {
    			return ibm.GetIamServicePolicyResult(interface{}(ibm.LookupIamServicePolicyOutput(ctx, ibm.GetIamServicePolicyOutputArgs{
    				IamServiceId:  iamServiceId,
    				TransactionId: "terrformServicePolicy",
    			}, nil))), nil
    		}).(ibm.GetIamServicePolicyResultOutput)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var policy = new Ibm.IamServicePolicy("policy", new()
        {
            IamServiceId = "ServiceId-d7bec597-4726-451f-8a63-e62e6f19c32c",
            Roles = new[]
            {
                "Manager",
                "Viewer",
                "Administrator",
            },
            Resources = new Ibm.Inputs.IamServicePolicyResourcesArgs
            {
                Service = "kms",
                Region = "us-south",
                ResourceInstanceId = ibm_resource_instance.Instance.Id.Split(":")[7],
            },
        });
    
        var testaccDsServicePolicy = Ibm.GetIamServicePolicy.Invoke(new()
        {
            IamServiceId = policy.IamServiceId,
            TransactionId = "terrformServicePolicy",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IamServicePolicy;
    import com.pulumi.ibm.IamServicePolicyArgs;
    import com.pulumi.ibm.inputs.IamServicePolicyResourcesArgs;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetIamServicePolicyArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var policy = new IamServicePolicy("policy", IamServicePolicyArgs.builder()
                .iamServiceId("ServiceId-d7bec597-4726-451f-8a63-e62e6f19c32c")
                .roles(            
                    "Manager",
                    "Viewer",
                    "Administrator")
                .resources(IamServicePolicyResourcesArgs.builder()
                    .service("kms")
                    .region("us-south")
                    .resourceInstanceId(ibm_resource_instance.instance().id().split(":")[7])
                    .build())
                .build());
    
            final var testaccDsServicePolicy = IbmFunctions.getIamServicePolicy(GetIamServicePolicyArgs.builder()
                .iamServiceId(policy.iamServiceId())
                .transactionId("terrformServicePolicy")
                .build());
    
        }
    }
    
    resources:
      policy:
        type: ibm:IamServicePolicy
        properties:
          iamServiceId: ServiceId-d7bec597-4726-451f-8a63-e62e6f19c32c
          roles:
            - Manager
            - Viewer
            - Administrator
          resources:
            service: kms
            region: us-south
            resourceInstanceId:
              fn::select:
                - 7
                - fn::split:
                    - ${ibm_resource_instance.instance.id}
                    - ':'
    variables:
      testaccDsServicePolicy:
        fn::invoke:
          function: ibm:getIamServicePolicy
          arguments:
            iamServiceId: ${policy.iamServiceId}
            transactionId: terrformServicePolicy
    

    Using getIamServicePolicy

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getIamServicePolicy(args: GetIamServicePolicyArgs, opts?: InvokeOptions): Promise<GetIamServicePolicyResult>
    function getIamServicePolicyOutput(args: GetIamServicePolicyOutputArgs, opts?: InvokeOptions): Output<GetIamServicePolicyResult>
    def get_iam_service_policy(iam_id: Optional[str] = None,
                               iam_service_id: Optional[str] = None,
                               id: Optional[str] = None,
                               sort: Optional[str] = None,
                               transaction_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetIamServicePolicyResult
    def get_iam_service_policy_output(iam_id: Optional[pulumi.Input[str]] = None,
                               iam_service_id: Optional[pulumi.Input[str]] = None,
                               id: Optional[pulumi.Input[str]] = None,
                               sort: Optional[pulumi.Input[str]] = None,
                               transaction_id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetIamServicePolicyResult]
    func LookupIamServicePolicy(ctx *Context, args *LookupIamServicePolicyArgs, opts ...InvokeOption) (*LookupIamServicePolicyResult, error)
    func LookupIamServicePolicyOutput(ctx *Context, args *LookupIamServicePolicyOutputArgs, opts ...InvokeOption) LookupIamServicePolicyResultOutput

    > Note: This function is named LookupIamServicePolicy in the Go SDK.

    public static class GetIamServicePolicy 
    {
        public static Task<GetIamServicePolicyResult> InvokeAsync(GetIamServicePolicyArgs args, InvokeOptions? opts = null)
        public static Output<GetIamServicePolicyResult> Invoke(GetIamServicePolicyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIamServicePolicyResult> getIamServicePolicy(GetIamServicePolicyArgs args, InvokeOptions options)
    public static Output<GetIamServicePolicyResult> getIamServicePolicy(GetIamServicePolicyArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIamServicePolicy:getIamServicePolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    IamId string
    IAM ID of the service ID. One of the iam_service_id or iam_id is required argument. You can use to get cross account service ID policy.
    IamServiceId string
    The UUID of the service ID.
    Id string
    (String) The unique identifier of the IAM service policy. The ID is composed of <iam_service_id>/<service_policy_id>. If policy is created by using <iam_service_id>. The ID is composed of <iam_id>/<service_policy_id> if policy is created by using <iam_id>.
    Sort string
    Optional - (String) The single field sort query for policies.
    TransactionId string
    The TransactionID can be passed to your request for the tracking calls.
    IamId string
    IAM ID of the service ID. One of the iam_service_id or iam_id is required argument. You can use to get cross account service ID policy.
    IamServiceId string
    The UUID of the service ID.
    Id string
    (String) The unique identifier of the IAM service policy. The ID is composed of <iam_service_id>/<service_policy_id>. If policy is created by using <iam_service_id>. The ID is composed of <iam_id>/<service_policy_id> if policy is created by using <iam_id>.
    Sort string
    Optional - (String) The single field sort query for policies.
    TransactionId string
    The TransactionID can be passed to your request for the tracking calls.
    iamId String
    IAM ID of the service ID. One of the iam_service_id or iam_id is required argument. You can use to get cross account service ID policy.
    iamServiceId String
    The UUID of the service ID.
    id String
    (String) The unique identifier of the IAM service policy. The ID is composed of <iam_service_id>/<service_policy_id>. If policy is created by using <iam_service_id>. The ID is composed of <iam_id>/<service_policy_id> if policy is created by using <iam_id>.
    sort String
    Optional - (String) The single field sort query for policies.
    transactionId String
    The TransactionID can be passed to your request for the tracking calls.
    iamId string
    IAM ID of the service ID. One of the iam_service_id or iam_id is required argument. You can use to get cross account service ID policy.
    iamServiceId string
    The UUID of the service ID.
    id string
    (String) The unique identifier of the IAM service policy. The ID is composed of <iam_service_id>/<service_policy_id>. If policy is created by using <iam_service_id>. The ID is composed of <iam_id>/<service_policy_id> if policy is created by using <iam_id>.
    sort string
    Optional - (String) The single field sort query for policies.
    transactionId string
    The TransactionID can be passed to your request for the tracking calls.
    iam_id str
    IAM ID of the service ID. One of the iam_service_id or iam_id is required argument. You can use to get cross account service ID policy.
    iam_service_id str
    The UUID of the service ID.
    id str
    (String) The unique identifier of the IAM service policy. The ID is composed of <iam_service_id>/<service_policy_id>. If policy is created by using <iam_service_id>. The ID is composed of <iam_id>/<service_policy_id> if policy is created by using <iam_id>.
    sort str
    Optional - (String) The single field sort query for policies.
    transaction_id str
    The TransactionID can be passed to your request for the tracking calls.
    iamId String
    IAM ID of the service ID. One of the iam_service_id or iam_id is required argument. You can use to get cross account service ID policy.
    iamServiceId String
    The UUID of the service ID.
    id String
    (String) The unique identifier of the IAM service policy. The ID is composed of <iam_service_id>/<service_policy_id>. If policy is created by using <iam_service_id>. The ID is composed of <iam_id>/<service_policy_id> if policy is created by using <iam_id>.
    sort String
    Optional - (String) The single field sort query for policies.
    transactionId String
    The TransactionID can be passed to your request for the tracking calls.

    getIamServicePolicy Result

    The following output properties are available:

    Id string
    (String) The unique identifier of the IAM service policy. The ID is composed of <iam_service_id>/<service_policy_id>. If policy is created by using <iam_service_id>. The ID is composed of <iam_id>/<service_policy_id> if policy is created by using <iam_id>.
    Policies List<GetIamServicePolicyPolicy>
    (List) A nested block describes IAM service policies that are assigned to a service ID.
    TransactionId string
    IamId string
    IamServiceId string
    Sort string
    Id string
    (String) The unique identifier of the IAM service policy. The ID is composed of <iam_service_id>/<service_policy_id>. If policy is created by using <iam_service_id>. The ID is composed of <iam_id>/<service_policy_id> if policy is created by using <iam_id>.
    Policies []GetIamServicePolicyPolicy
    (List) A nested block describes IAM service policies that are assigned to a service ID.
    TransactionId string
    IamId string
    IamServiceId string
    Sort string
    id String
    (String) The unique identifier of the IAM service policy. The ID is composed of <iam_service_id>/<service_policy_id>. If policy is created by using <iam_service_id>. The ID is composed of <iam_id>/<service_policy_id> if policy is created by using <iam_id>.
    policies List<GetIamServicePolicyPolicy>
    (List) A nested block describes IAM service policies that are assigned to a service ID.
    transactionId String
    iamId String
    iamServiceId String
    sort String
    id string
    (String) The unique identifier of the IAM service policy. The ID is composed of <iam_service_id>/<service_policy_id>. If policy is created by using <iam_service_id>. The ID is composed of <iam_id>/<service_policy_id> if policy is created by using <iam_id>.
    policies GetIamServicePolicyPolicy[]
    (List) A nested block describes IAM service policies that are assigned to a service ID.
    transactionId string
    iamId string
    iamServiceId string
    sort string
    id str
    (String) The unique identifier of the IAM service policy. The ID is composed of <iam_service_id>/<service_policy_id>. If policy is created by using <iam_service_id>. The ID is composed of <iam_id>/<service_policy_id> if policy is created by using <iam_id>.
    policies Sequence[GetIamServicePolicyPolicy]
    (List) A nested block describes IAM service policies that are assigned to a service ID.
    transaction_id str
    iam_id str
    iam_service_id str
    sort str
    id String
    (String) The unique identifier of the IAM service policy. The ID is composed of <iam_service_id>/<service_policy_id>. If policy is created by using <iam_service_id>. The ID is composed of <iam_id>/<service_policy_id> if policy is created by using <iam_id>.
    policies List<Property Map>
    (List) A nested block describes IAM service policies that are assigned to a service ID.
    transactionId String
    iamId String
    iamServiceId String
    sort String

    Supporting Types

    GetIamServicePolicyPolicy

    Description string
    (String) The description of the IAM Service Policy.
    Id string
    (String) The unique identifier of the IAM service policy. The ID is composed of <iam_service_id>/<service_policy_id>. If policy is created by using <iam_service_id>. The ID is composed of <iam_id>/<service_policy_id> if policy is created by using <iam_id>.
    Pattern string
    (String) The pattern that the rule follows, e.g., time-based-conditions:weekly:all-day.
    ResourceTags List<GetIamServicePolicyPolicyResourceTag>
    (List of objects) A nested block describes the access management tags in the policy.
    Resources List<GetIamServicePolicyPolicyResource>
    (List of objects) A nested block describes the resources in the policy.
    Roles List<string>
    (String) The roles that are assigned to the policy.
    RuleConditions List<GetIamServicePolicyPolicyRuleCondition>
    (List of objects) A nested block describing the rule conditions of this policy.
    RuleOperator string
    (String) The operator used to evaluate multiple rule conditions, e.g., all must be satisfied with and.
    Description string
    (String) The description of the IAM Service Policy.
    Id string
    (String) The unique identifier of the IAM service policy. The ID is composed of <iam_service_id>/<service_policy_id>. If policy is created by using <iam_service_id>. The ID is composed of <iam_id>/<service_policy_id> if policy is created by using <iam_id>.
    Pattern string
    (String) The pattern that the rule follows, e.g., time-based-conditions:weekly:all-day.
    ResourceTags []GetIamServicePolicyPolicyResourceTag
    (List of objects) A nested block describes the access management tags in the policy.
    Resources []GetIamServicePolicyPolicyResource
    (List of objects) A nested block describes the resources in the policy.
    Roles []string
    (String) The roles that are assigned to the policy.
    RuleConditions []GetIamServicePolicyPolicyRuleCondition
    (List of objects) A nested block describing the rule conditions of this policy.
    RuleOperator string
    (String) The operator used to evaluate multiple rule conditions, e.g., all must be satisfied with and.
    description String
    (String) The description of the IAM Service Policy.
    id String
    (String) The unique identifier of the IAM service policy. The ID is composed of <iam_service_id>/<service_policy_id>. If policy is created by using <iam_service_id>. The ID is composed of <iam_id>/<service_policy_id> if policy is created by using <iam_id>.
    pattern String
    (String) The pattern that the rule follows, e.g., time-based-conditions:weekly:all-day.
    resourceTags List<GetIamServicePolicyPolicyResourceTag>
    (List of objects) A nested block describes the access management tags in the policy.
    resources List<GetIamServicePolicyPolicyResource>
    (List of objects) A nested block describes the resources in the policy.
    roles List<String>
    (String) The roles that are assigned to the policy.
    ruleConditions List<GetIamServicePolicyPolicyRuleCondition>
    (List of objects) A nested block describing the rule conditions of this policy.
    ruleOperator String
    (String) The operator used to evaluate multiple rule conditions, e.g., all must be satisfied with and.
    description string
    (String) The description of the IAM Service Policy.
    id string
    (String) The unique identifier of the IAM service policy. The ID is composed of <iam_service_id>/<service_policy_id>. If policy is created by using <iam_service_id>. The ID is composed of <iam_id>/<service_policy_id> if policy is created by using <iam_id>.
    pattern string
    (String) The pattern that the rule follows, e.g., time-based-conditions:weekly:all-day.
    resourceTags GetIamServicePolicyPolicyResourceTag[]
    (List of objects) A nested block describes the access management tags in the policy.
    resources GetIamServicePolicyPolicyResource[]
    (List of objects) A nested block describes the resources in the policy.
    roles string[]
    (String) The roles that are assigned to the policy.
    ruleConditions GetIamServicePolicyPolicyRuleCondition[]
    (List of objects) A nested block describing the rule conditions of this policy.
    ruleOperator string
    (String) The operator used to evaluate multiple rule conditions, e.g., all must be satisfied with and.
    description str
    (String) The description of the IAM Service Policy.
    id str
    (String) The unique identifier of the IAM service policy. The ID is composed of <iam_service_id>/<service_policy_id>. If policy is created by using <iam_service_id>. The ID is composed of <iam_id>/<service_policy_id> if policy is created by using <iam_id>.
    pattern str
    (String) The pattern that the rule follows, e.g., time-based-conditions:weekly:all-day.
    resource_tags Sequence[GetIamServicePolicyPolicyResourceTag]
    (List of objects) A nested block describes the access management tags in the policy.
    resources Sequence[GetIamServicePolicyPolicyResource]
    (List of objects) A nested block describes the resources in the policy.
    roles Sequence[str]
    (String) The roles that are assigned to the policy.
    rule_conditions Sequence[GetIamServicePolicyPolicyRuleCondition]
    (List of objects) A nested block describing the rule conditions of this policy.
    rule_operator str
    (String) The operator used to evaluate multiple rule conditions, e.g., all must be satisfied with and.
    description String
    (String) The description of the IAM Service Policy.
    id String
    (String) The unique identifier of the IAM service policy. The ID is composed of <iam_service_id>/<service_policy_id>. If policy is created by using <iam_service_id>. The ID is composed of <iam_id>/<service_policy_id> if policy is created by using <iam_id>.
    pattern String
    (String) The pattern that the rule follows, e.g., time-based-conditions:weekly:all-day.
    resourceTags List<Property Map>
    (List of objects) A nested block describes the access management tags in the policy.
    resources List<Property Map>
    (List of objects) A nested block describes the resources in the policy.
    roles List<String>
    (String) The roles that are assigned to the policy.
    ruleConditions List<Property Map>
    (List of objects) A nested block describing the rule conditions of this policy.
    ruleOperator String
    (String) The operator used to evaluate multiple rule conditions, e.g., all must be satisfied with and.

    GetIamServicePolicyPolicyResource

    Attributes Dictionary<string, string>
    (Map) A set of resource attributes in the format name=value,name=value.
    Region string
    (String) The region of the policy definition.
    Resource string
    (String) The resource of the policy definition.
    ResourceGroupId string
    (String) The ID of the resource group.
    ResourceInstanceId string
    (String) The ID of resource instance of the policy definition.
    ResourceType string
    (String) The resource type of the policy definition.
    Service string
    (String) The service name of the policy definition.
    ServiceGroupId string
    (String) The service group id of the policy definition.
    ServiceType string
    Attributes map[string]string
    (Map) A set of resource attributes in the format name=value,name=value.
    Region string
    (String) The region of the policy definition.
    Resource string
    (String) The resource of the policy definition.
    ResourceGroupId string
    (String) The ID of the resource group.
    ResourceInstanceId string
    (String) The ID of resource instance of the policy definition.
    ResourceType string
    (String) The resource type of the policy definition.
    Service string
    (String) The service name of the policy definition.
    ServiceGroupId string
    (String) The service group id of the policy definition.
    ServiceType string
    attributes Map<String,String>
    (Map) A set of resource attributes in the format name=value,name=value.
    region String
    (String) The region of the policy definition.
    resource String
    (String) The resource of the policy definition.
    resourceGroupId String
    (String) The ID of the resource group.
    resourceInstanceId String
    (String) The ID of resource instance of the policy definition.
    resourceType String
    (String) The resource type of the policy definition.
    service String
    (String) The service name of the policy definition.
    serviceGroupId String
    (String) The service group id of the policy definition.
    serviceType String
    attributes {[key: string]: string}
    (Map) A set of resource attributes in the format name=value,name=value.
    region string
    (String) The region of the policy definition.
    resource string
    (String) The resource of the policy definition.
    resourceGroupId string
    (String) The ID of the resource group.
    resourceInstanceId string
    (String) The ID of resource instance of the policy definition.
    resourceType string
    (String) The resource type of the policy definition.
    service string
    (String) The service name of the policy definition.
    serviceGroupId string
    (String) The service group id of the policy definition.
    serviceType string
    attributes Mapping[str, str]
    (Map) A set of resource attributes in the format name=value,name=value.
    region str
    (String) The region of the policy definition.
    resource str
    (String) The resource of the policy definition.
    resource_group_id str
    (String) The ID of the resource group.
    resource_instance_id str
    (String) The ID of resource instance of the policy definition.
    resource_type str
    (String) The resource type of the policy definition.
    service str
    (String) The service name of the policy definition.
    service_group_id str
    (String) The service group id of the policy definition.
    service_type str
    attributes Map<String>
    (Map) A set of resource attributes in the format name=value,name=value.
    region String
    (String) The region of the policy definition.
    resource String
    (String) The resource of the policy definition.
    resourceGroupId String
    (String) The ID of the resource group.
    resourceInstanceId String
    (String) The ID of resource instance of the policy definition.
    resourceType String
    (String) The resource type of the policy definition.
    service String
    (String) The service name of the policy definition.
    serviceGroupId String
    (String) The service group id of the policy definition.
    serviceType String

    GetIamServicePolicyPolicyResourceTag

    Name string
    (String) The key of an access management tag.
    Operator string
    (String) The operator of a condition.
    Value string
    (List of Strings) The value of a condition.
    Name string
    (String) The key of an access management tag.
    Operator string
    (String) The operator of a condition.
    Value string
    (List of Strings) The value of a condition.
    name String
    (String) The key of an access management tag.
    operator String
    (String) The operator of a condition.
    value String
    (List of Strings) The value of a condition.
    name string
    (String) The key of an access management tag.
    operator string
    (String) The operator of a condition.
    value string
    (List of Strings) The value of a condition.
    name str
    (String) The key of an access management tag.
    operator str
    (String) The operator of a condition.
    value str
    (List of Strings) The value of a condition.
    name String
    (String) The key of an access management tag.
    operator String
    (String) The operator of a condition.
    value String
    (List of Strings) The value of a condition.

    GetIamServicePolicyPolicyRuleCondition

    Conditions List<GetIamServicePolicyPolicyRuleConditionCondition>
    (List of Objects) A nested block describing additional rule conditions of this policy.
    Key string
    (String) The key of a condition.
    Operator string
    (String) The operator of a condition.
    Values List<string>
    (List of Strings) The value of a condition.
    Conditions []GetIamServicePolicyPolicyRuleConditionCondition
    (List of Objects) A nested block describing additional rule conditions of this policy.
    Key string
    (String) The key of a condition.
    Operator string
    (String) The operator of a condition.
    Values []string
    (List of Strings) The value of a condition.
    conditions List<GetIamServicePolicyPolicyRuleConditionCondition>
    (List of Objects) A nested block describing additional rule conditions of this policy.
    key String
    (String) The key of a condition.
    operator String
    (String) The operator of a condition.
    values List<String>
    (List of Strings) The value of a condition.
    conditions GetIamServicePolicyPolicyRuleConditionCondition[]
    (List of Objects) A nested block describing additional rule conditions of this policy.
    key string
    (String) The key of a condition.
    operator string
    (String) The operator of a condition.
    values string[]
    (List of Strings) The value of a condition.
    conditions Sequence[GetIamServicePolicyPolicyRuleConditionCondition]
    (List of Objects) A nested block describing additional rule conditions of this policy.
    key str
    (String) The key of a condition.
    operator str
    (String) The operator of a condition.
    values Sequence[str]
    (List of Strings) The value of a condition.
    conditions List<Property Map>
    (List of Objects) A nested block describing additional rule conditions of this policy.
    key String
    (String) The key of a condition.
    operator String
    (String) The operator of a condition.
    values List<String>
    (List of Strings) The value of a condition.

    GetIamServicePolicyPolicyRuleConditionCondition

    Key string
    (String) The key of a condition.
    Operator string
    (String) The operator of a condition.
    Values List<string>
    (List of Strings) The value of a condition.
    Key string
    (String) The key of a condition.
    Operator string
    (String) The operator of a condition.
    Values []string
    (List of Strings) The value of a condition.
    key String
    (String) The key of a condition.
    operator String
    (String) The operator of a condition.
    values List<String>
    (List of Strings) The value of a condition.
    key string
    (String) The key of a condition.
    operator string
    (String) The operator of a condition.
    values string[]
    (List of Strings) The value of a condition.
    key str
    (String) The key of a condition.
    operator str
    (String) The operator of a condition.
    values Sequence[str]
    (List of Strings) The value of a condition.
    key String
    (String) The key of a condition.
    operator String
    (String) The operator of a condition.
    values List<String>
    (List of Strings) The value of a condition.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud