1. Packages
  2. Ibm Provider
  3. API Docs
  4. IamActionControlAssignment
ibm 1.79.2 published on Friday, Jun 13, 2025 by ibm-cloud

ibm.IamActionControlAssignment

Explore with Pulumi AI

ibm logo
ibm 1.79.2 published on Friday, Jun 13, 2025 by ibm-cloud

    Create IamActionControlAssignment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new IamActionControlAssignment(name: string, args: IamActionControlAssignmentArgs, opts?: CustomResourceOptions);
    @overload
    def IamActionControlAssignment(resource_name: str,
                                   args: IamActionControlAssignmentArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def IamActionControlAssignment(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   target: Optional[Mapping[str, str]] = None,
                                   templates: Optional[IamActionControlAssignmentTemplatesArgs] = None,
                                   iam_action_control_assignment_id: Optional[str] = None,
                                   template_version: Optional[str] = None,
                                   timeouts: Optional[IamActionControlAssignmentTimeoutsArgs] = None)
    func NewIamActionControlAssignment(ctx *Context, name string, args IamActionControlAssignmentArgs, opts ...ResourceOption) (*IamActionControlAssignment, error)
    public IamActionControlAssignment(string name, IamActionControlAssignmentArgs args, CustomResourceOptions? opts = null)
    public IamActionControlAssignment(String name, IamActionControlAssignmentArgs args)
    public IamActionControlAssignment(String name, IamActionControlAssignmentArgs args, CustomResourceOptions options)
    
    type: ibm:IamActionControlAssignment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args IamActionControlAssignmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args IamActionControlAssignmentArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args IamActionControlAssignmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IamActionControlAssignmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IamActionControlAssignmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var iamActionControlAssignmentResource = new Ibm.IamActionControlAssignment("iamActionControlAssignmentResource", new()
    {
        Target = 
        {
            { "string", "string" },
        },
        Templates = new Ibm.Inputs.IamActionControlAssignmentTemplatesArgs
        {
            Id = "string",
            Version = "string",
        },
        IamActionControlAssignmentId = "string",
        TemplateVersion = "string",
        Timeouts = new Ibm.Inputs.IamActionControlAssignmentTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := ibm.NewIamActionControlAssignment(ctx, "iamActionControlAssignmentResource", &ibm.IamActionControlAssignmentArgs{
    	Target: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Templates: &ibm.IamActionControlAssignmentTemplatesArgs{
    		Id:      pulumi.String("string"),
    		Version: pulumi.String("string"),
    	},
    	IamActionControlAssignmentId: pulumi.String("string"),
    	TemplateVersion:              pulumi.String("string"),
    	Timeouts: &ibm.IamActionControlAssignmentTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var iamActionControlAssignmentResource = new IamActionControlAssignment("iamActionControlAssignmentResource", IamActionControlAssignmentArgs.builder()
        .target(Map.of("string", "string"))
        .templates(IamActionControlAssignmentTemplatesArgs.builder()
            .id("string")
            .version("string")
            .build())
        .iamActionControlAssignmentId("string")
        .templateVersion("string")
        .timeouts(IamActionControlAssignmentTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    iam_action_control_assignment_resource = ibm.IamActionControlAssignment("iamActionControlAssignmentResource",
        target={
            "string": "string",
        },
        templates={
            "id": "string",
            "version": "string",
        },
        iam_action_control_assignment_id="string",
        template_version="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const iamActionControlAssignmentResource = new ibm.IamActionControlAssignment("iamActionControlAssignmentResource", {
        target: {
            string: "string",
        },
        templates: {
            id: "string",
            version: "string",
        },
        iamActionControlAssignmentId: "string",
        templateVersion: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: ibm:IamActionControlAssignment
    properties:
        iamActionControlAssignmentId: string
        target:
            string: string
        templateVersion: string
        templates:
            id: string
            version: string
        timeouts:
            create: string
            delete: string
            update: string
    

    IamActionControlAssignment Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The IamActionControlAssignment resource accepts the following input properties:

    Target Dictionary<string, string>
    assignment target details
    Templates IamActionControlAssignmentTemplates
    action control template details.
    IamActionControlAssignmentId string
    TemplateVersion string
    The policy template version.
    Timeouts IamActionControlAssignmentTimeouts
    Target map[string]string
    assignment target details
    Templates IamActionControlAssignmentTemplatesArgs
    action control template details.
    IamActionControlAssignmentId string
    TemplateVersion string
    The policy template version.
    Timeouts IamActionControlAssignmentTimeoutsArgs
    target Map<String,String>
    assignment target details
    templates IamActionControlAssignmentTemplates
    action control template details.
    iamActionControlAssignmentId String
    templateVersion String
    The policy template version.
    timeouts IamActionControlAssignmentTimeouts
    target {[key: string]: string}
    assignment target details
    templates IamActionControlAssignmentTemplates
    action control template details.
    iamActionControlAssignmentId string
    templateVersion string
    The policy template version.
    timeouts IamActionControlAssignmentTimeouts
    target Mapping[str, str]
    assignment target details
    templates IamActionControlAssignmentTemplatesArgs
    action control template details.
    iam_action_control_assignment_id str
    template_version str
    The policy template version.
    timeouts IamActionControlAssignmentTimeoutsArgs
    target Map<String>
    assignment target details
    templates Property Map
    action control template details.
    iamActionControlAssignmentId String
    templateVersion String
    The policy template version.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the IamActionControlAssignment resource produces the following output properties:

    AccountId string
    The account GUID that the action control assignments belong to.
    CreatedAt string
    The UTC timestamp when the action control assignment was created.
    CreatedById string
    The IAM ID of the entity that created the action control assignment.
    Href string
    The href URL that links to the action control assignments API by action control assignment ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifiedAt string
    The UTC timestamp when the action control assignment was last modified.
    LastModifiedById string
    The IAM ID of the entity that last modified the action control assignment.
    Operation string
    The current operation of the action control assignment.
    Resources List<IamActionControlAssignmentResource>
    Resources created when action control template is assigned.
    Status string
    The action control assignment status.
    AccountId string
    The account GUID that the action control assignments belong to.
    CreatedAt string
    The UTC timestamp when the action control assignment was created.
    CreatedById string
    The IAM ID of the entity that created the action control assignment.
    Href string
    The href URL that links to the action control assignments API by action control assignment ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifiedAt string
    The UTC timestamp when the action control assignment was last modified.
    LastModifiedById string
    The IAM ID of the entity that last modified the action control assignment.
    Operation string
    The current operation of the action control assignment.
    Resources []IamActionControlAssignmentResource
    Resources created when action control template is assigned.
    Status string
    The action control assignment status.
    accountId String
    The account GUID that the action control assignments belong to.
    createdAt String
    The UTC timestamp when the action control assignment was created.
    createdById String
    The IAM ID of the entity that created the action control assignment.
    href String
    The href URL that links to the action control assignments API by action control assignment ID.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifiedAt String
    The UTC timestamp when the action control assignment was last modified.
    lastModifiedById String
    The IAM ID of the entity that last modified the action control assignment.
    operation String
    The current operation of the action control assignment.
    resources List<IamActionControlAssignmentResource>
    Resources created when action control template is assigned.
    status String
    The action control assignment status.
    accountId string
    The account GUID that the action control assignments belong to.
    createdAt string
    The UTC timestamp when the action control assignment was created.
    createdById string
    The IAM ID of the entity that created the action control assignment.
    href string
    The href URL that links to the action control assignments API by action control assignment ID.
    id string
    The provider-assigned unique ID for this managed resource.
    lastModifiedAt string
    The UTC timestamp when the action control assignment was last modified.
    lastModifiedById string
    The IAM ID of the entity that last modified the action control assignment.
    operation string
    The current operation of the action control assignment.
    resources IamActionControlAssignmentResource[]
    Resources created when action control template is assigned.
    status string
    The action control assignment status.
    account_id str
    The account GUID that the action control assignments belong to.
    created_at str
    The UTC timestamp when the action control assignment was created.
    created_by_id str
    The IAM ID of the entity that created the action control assignment.
    href str
    The href URL that links to the action control assignments API by action control assignment ID.
    id str
    The provider-assigned unique ID for this managed resource.
    last_modified_at str
    The UTC timestamp when the action control assignment was last modified.
    last_modified_by_id str
    The IAM ID of the entity that last modified the action control assignment.
    operation str
    The current operation of the action control assignment.
    resources Sequence[IamActionControlAssignmentResource]
    Resources created when action control template is assigned.
    status str
    The action control assignment status.
    accountId String
    The account GUID that the action control assignments belong to.
    createdAt String
    The UTC timestamp when the action control assignment was created.
    createdById String
    The IAM ID of the entity that created the action control assignment.
    href String
    The href URL that links to the action control assignments API by action control assignment ID.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifiedAt String
    The UTC timestamp when the action control assignment was last modified.
    lastModifiedById String
    The IAM ID of the entity that last modified the action control assignment.
    operation String
    The current operation of the action control assignment.
    resources List<Property Map>
    Resources created when action control template is assigned.
    status String
    The action control assignment status.

    Look up Existing IamActionControlAssignment Resource

    Get an existing IamActionControlAssignment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: IamActionControlAssignmentState, opts?: CustomResourceOptions): IamActionControlAssignment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            created_at: Optional[str] = None,
            created_by_id: Optional[str] = None,
            href: Optional[str] = None,
            iam_action_control_assignment_id: Optional[str] = None,
            last_modified_at: Optional[str] = None,
            last_modified_by_id: Optional[str] = None,
            operation: Optional[str] = None,
            resources: Optional[Sequence[IamActionControlAssignmentResourceArgs]] = None,
            status: Optional[str] = None,
            target: Optional[Mapping[str, str]] = None,
            template_version: Optional[str] = None,
            templates: Optional[IamActionControlAssignmentTemplatesArgs] = None,
            timeouts: Optional[IamActionControlAssignmentTimeoutsArgs] = None) -> IamActionControlAssignment
    func GetIamActionControlAssignment(ctx *Context, name string, id IDInput, state *IamActionControlAssignmentState, opts ...ResourceOption) (*IamActionControlAssignment, error)
    public static IamActionControlAssignment Get(string name, Input<string> id, IamActionControlAssignmentState? state, CustomResourceOptions? opts = null)
    public static IamActionControlAssignment get(String name, Output<String> id, IamActionControlAssignmentState state, CustomResourceOptions options)
    resources:  _:    type: ibm:IamActionControlAssignment    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccountId string
    The account GUID that the action control assignments belong to.
    CreatedAt string
    The UTC timestamp when the action control assignment was created.
    CreatedById string
    The IAM ID of the entity that created the action control assignment.
    Href string
    The href URL that links to the action control assignments API by action control assignment ID.
    IamActionControlAssignmentId string
    LastModifiedAt string
    The UTC timestamp when the action control assignment was last modified.
    LastModifiedById string
    The IAM ID of the entity that last modified the action control assignment.
    Operation string
    The current operation of the action control assignment.
    Resources List<IamActionControlAssignmentResource>
    Resources created when action control template is assigned.
    Status string
    The action control assignment status.
    Target Dictionary<string, string>
    assignment target details
    TemplateVersion string
    The policy template version.
    Templates IamActionControlAssignmentTemplates
    action control template details.
    Timeouts IamActionControlAssignmentTimeouts
    AccountId string
    The account GUID that the action control assignments belong to.
    CreatedAt string
    The UTC timestamp when the action control assignment was created.
    CreatedById string
    The IAM ID of the entity that created the action control assignment.
    Href string
    The href URL that links to the action control assignments API by action control assignment ID.
    IamActionControlAssignmentId string
    LastModifiedAt string
    The UTC timestamp when the action control assignment was last modified.
    LastModifiedById string
    The IAM ID of the entity that last modified the action control assignment.
    Operation string
    The current operation of the action control assignment.
    Resources []IamActionControlAssignmentResourceArgs
    Resources created when action control template is assigned.
    Status string
    The action control assignment status.
    Target map[string]string
    assignment target details
    TemplateVersion string
    The policy template version.
    Templates IamActionControlAssignmentTemplatesArgs
    action control template details.
    Timeouts IamActionControlAssignmentTimeoutsArgs
    accountId String
    The account GUID that the action control assignments belong to.
    createdAt String
    The UTC timestamp when the action control assignment was created.
    createdById String
    The IAM ID of the entity that created the action control assignment.
    href String
    The href URL that links to the action control assignments API by action control assignment ID.
    iamActionControlAssignmentId String
    lastModifiedAt String
    The UTC timestamp when the action control assignment was last modified.
    lastModifiedById String
    The IAM ID of the entity that last modified the action control assignment.
    operation String
    The current operation of the action control assignment.
    resources List<IamActionControlAssignmentResource>
    Resources created when action control template is assigned.
    status String
    The action control assignment status.
    target Map<String,String>
    assignment target details
    templateVersion String
    The policy template version.
    templates IamActionControlAssignmentTemplates
    action control template details.
    timeouts IamActionControlAssignmentTimeouts
    accountId string
    The account GUID that the action control assignments belong to.
    createdAt string
    The UTC timestamp when the action control assignment was created.
    createdById string
    The IAM ID of the entity that created the action control assignment.
    href string
    The href URL that links to the action control assignments API by action control assignment ID.
    iamActionControlAssignmentId string
    lastModifiedAt string
    The UTC timestamp when the action control assignment was last modified.
    lastModifiedById string
    The IAM ID of the entity that last modified the action control assignment.
    operation string
    The current operation of the action control assignment.
    resources IamActionControlAssignmentResource[]
    Resources created when action control template is assigned.
    status string
    The action control assignment status.
    target {[key: string]: string}
    assignment target details
    templateVersion string
    The policy template version.
    templates IamActionControlAssignmentTemplates
    action control template details.
    timeouts IamActionControlAssignmentTimeouts
    account_id str
    The account GUID that the action control assignments belong to.
    created_at str
    The UTC timestamp when the action control assignment was created.
    created_by_id str
    The IAM ID of the entity that created the action control assignment.
    href str
    The href URL that links to the action control assignments API by action control assignment ID.
    iam_action_control_assignment_id str
    last_modified_at str
    The UTC timestamp when the action control assignment was last modified.
    last_modified_by_id str
    The IAM ID of the entity that last modified the action control assignment.
    operation str
    The current operation of the action control assignment.
    resources Sequence[IamActionControlAssignmentResourceArgs]
    Resources created when action control template is assigned.
    status str
    The action control assignment status.
    target Mapping[str, str]
    assignment target details
    template_version str
    The policy template version.
    templates IamActionControlAssignmentTemplatesArgs
    action control template details.
    timeouts IamActionControlAssignmentTimeoutsArgs
    accountId String
    The account GUID that the action control assignments belong to.
    createdAt String
    The UTC timestamp when the action control assignment was created.
    createdById String
    The IAM ID of the entity that created the action control assignment.
    href String
    The href URL that links to the action control assignments API by action control assignment ID.
    iamActionControlAssignmentId String
    lastModifiedAt String
    The UTC timestamp when the action control assignment was last modified.
    lastModifiedById String
    The IAM ID of the entity that last modified the action control assignment.
    operation String
    The current operation of the action control assignment.
    resources List<Property Map>
    Resources created when action control template is assigned.
    status String
    The action control assignment status.
    target Map<String>
    assignment target details
    templateVersion String
    The policy template version.
    templates Property Map
    action control template details.
    timeouts Property Map

    Supporting Types

    IamActionControlAssignmentResource, IamActionControlAssignmentResourceArgs

    IamActionControlAssignmentResourceActionControl, IamActionControlAssignmentResourceActionControlArgs

    IamActionControlAssignmentResourceActionControlErrorMessage, IamActionControlAssignmentResourceActionControlErrorMessageArgs

    IamActionControlAssignmentResourceActionControlErrorMessageError, IamActionControlAssignmentResourceActionControlErrorMessageErrorArgs

    IamActionControlAssignmentResourceActionControlErrorMessageErrorDetail, IamActionControlAssignmentResourceActionControlErrorMessageErrorDetailArgs

    IamActionControlAssignmentResourceActionControlErrorMessageErrorDetailConflictsWith, IamActionControlAssignmentResourceActionControlErrorMessageErrorDetailConflictsWithArgs

    Etag string
    Policy string
    Role string
    Etag string
    Policy string
    Role string
    etag String
    policy String
    role String
    etag string
    policy string
    role string
    etag str
    policy str
    role str
    etag String
    policy String
    role String

    IamActionControlAssignmentResourceActionControlResourceCreated, IamActionControlAssignmentResourceActionControlResourceCreatedArgs

    Id string
    Id string
    id String
    id string
    id str
    id String

    IamActionControlAssignmentTemplates, IamActionControlAssignmentTemplatesArgs

    Id string
    action control template id.
    Version string
    action control template version.
    Id string
    action control template id.
    Version string
    action control template version.
    id String
    action control template id.
    version String
    action control template version.
    id string
    action control template id.
    version string
    action control template version.
    id str
    action control template id.
    version str
    action control template version.
    id String
    action control template id.
    version String
    action control template version.

    IamActionControlAssignmentTimeouts, IamActionControlAssignmentTimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    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.79.2 published on Friday, Jun 13, 2025 by ibm-cloud