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

ibm.IamAccessGroupAccountSettings

Explore with Pulumi AI

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

    Create, modify, or delete an iam_access_group_account_settings resources. Access groups can be used to define a set of permissions that you want to grant to a group of users. For more information, about IAM account settings, refer to setting up your IBM Cloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const iamAccessGroupAccountSettings = new ibm.IamAccessGroupAccountSettings("iamAccessGroupAccountSettings", {publicAccessEnabled: true});
    
    import pulumi
    import pulumi_ibm as ibm
    
    iam_access_group_account_settings = ibm.IamAccessGroupAccountSettings("iamAccessGroupAccountSettings", public_access_enabled=True)
    
    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 {
    		_, err := ibm.NewIamAccessGroupAccountSettings(ctx, "iamAccessGroupAccountSettings", &ibm.IamAccessGroupAccountSettingsArgs{
    			PublicAccessEnabled: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var iamAccessGroupAccountSettings = new Ibm.IamAccessGroupAccountSettings("iamAccessGroupAccountSettings", new()
        {
            PublicAccessEnabled = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IamAccessGroupAccountSettings;
    import com.pulumi.ibm.IamAccessGroupAccountSettingsArgs;
    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 iamAccessGroupAccountSettings = new IamAccessGroupAccountSettings("iamAccessGroupAccountSettings", IamAccessGroupAccountSettingsArgs.builder()
                .publicAccessEnabled(true)
                .build());
    
        }
    }
    
    resources:
      iamAccessGroupAccountSettings:
        type: ibm:IamAccessGroupAccountSettings
        properties:
          publicAccessEnabled: true
    

    Create IamAccessGroupAccountSettings Resource

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

    Constructor syntax

    new IamAccessGroupAccountSettings(name: string, args: IamAccessGroupAccountSettingsArgs, opts?: CustomResourceOptions);
    @overload
    def IamAccessGroupAccountSettings(resource_name: str,
                                      args: IamAccessGroupAccountSettingsArgs,
                                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def IamAccessGroupAccountSettings(resource_name: str,
                                      opts: Optional[ResourceOptions] = None,
                                      public_access_enabled: Optional[bool] = None,
                                      iam_access_group_account_settings_id: Optional[str] = None)
    func NewIamAccessGroupAccountSettings(ctx *Context, name string, args IamAccessGroupAccountSettingsArgs, opts ...ResourceOption) (*IamAccessGroupAccountSettings, error)
    public IamAccessGroupAccountSettings(string name, IamAccessGroupAccountSettingsArgs args, CustomResourceOptions? opts = null)
    public IamAccessGroupAccountSettings(String name, IamAccessGroupAccountSettingsArgs args)
    public IamAccessGroupAccountSettings(String name, IamAccessGroupAccountSettingsArgs args, CustomResourceOptions options)
    
    type: ibm:IamAccessGroupAccountSettings
    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 IamAccessGroupAccountSettingsArgs
    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 IamAccessGroupAccountSettingsArgs
    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 IamAccessGroupAccountSettingsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IamAccessGroupAccountSettingsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IamAccessGroupAccountSettingsArgs
    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 iamAccessGroupAccountSettingsResource = new Ibm.IamAccessGroupAccountSettings("iamAccessGroupAccountSettingsResource", new()
    {
        PublicAccessEnabled = false,
        IamAccessGroupAccountSettingsId = "string",
    });
    
    example, err := ibm.NewIamAccessGroupAccountSettings(ctx, "iamAccessGroupAccountSettingsResource", &ibm.IamAccessGroupAccountSettingsArgs{
    	PublicAccessEnabled:             pulumi.Bool(false),
    	IamAccessGroupAccountSettingsId: pulumi.String("string"),
    })
    
    var iamAccessGroupAccountSettingsResource = new IamAccessGroupAccountSettings("iamAccessGroupAccountSettingsResource", IamAccessGroupAccountSettingsArgs.builder()
        .publicAccessEnabled(false)
        .iamAccessGroupAccountSettingsId("string")
        .build());
    
    iam_access_group_account_settings_resource = ibm.IamAccessGroupAccountSettings("iamAccessGroupAccountSettingsResource",
        public_access_enabled=False,
        iam_access_group_account_settings_id="string")
    
    const iamAccessGroupAccountSettingsResource = new ibm.IamAccessGroupAccountSettings("iamAccessGroupAccountSettingsResource", {
        publicAccessEnabled: false,
        iamAccessGroupAccountSettingsId: "string",
    });
    
    type: ibm:IamAccessGroupAccountSettings
    properties:
        iamAccessGroupAccountSettingsId: string
        publicAccessEnabled: false
    

    IamAccessGroupAccountSettings 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 IamAccessGroupAccountSettings resource accepts the following input properties:

    PublicAccessEnabled bool
    Defines if the public groups are included in the response for access group listing.
    IamAccessGroupAccountSettingsId string
    PublicAccessEnabled bool
    Defines if the public groups are included in the response for access group listing.
    IamAccessGroupAccountSettingsId string
    publicAccessEnabled Boolean
    Defines if the public groups are included in the response for access group listing.
    iamAccessGroupAccountSettingsId String
    publicAccessEnabled boolean
    Defines if the public groups are included in the response for access group listing.
    iamAccessGroupAccountSettingsId string
    public_access_enabled bool
    Defines if the public groups are included in the response for access group listing.
    iam_access_group_account_settings_id str
    publicAccessEnabled Boolean
    Defines if the public groups are included in the response for access group listing.
    iamAccessGroupAccountSettingsId String

    Outputs

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

    AccountId string
    (String) Unique ID of an account.
    Id string
    The provider-assigned unique ID for this managed resource.
    AccountId string
    (String) Unique ID of an account.
    Id string
    The provider-assigned unique ID for this managed resource.
    accountId String
    (String) Unique ID of an account.
    id String
    The provider-assigned unique ID for this managed resource.
    accountId string
    (String) Unique ID of an account.
    id string
    The provider-assigned unique ID for this managed resource.
    account_id str
    (String) Unique ID of an account.
    id str
    The provider-assigned unique ID for this managed resource.
    accountId String
    (String) Unique ID of an account.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing IamAccessGroupAccountSettings Resource

    Get an existing IamAccessGroupAccountSettings 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?: IamAccessGroupAccountSettingsState, opts?: CustomResourceOptions): IamAccessGroupAccountSettings
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            iam_access_group_account_settings_id: Optional[str] = None,
            public_access_enabled: Optional[bool] = None) -> IamAccessGroupAccountSettings
    func GetIamAccessGroupAccountSettings(ctx *Context, name string, id IDInput, state *IamAccessGroupAccountSettingsState, opts ...ResourceOption) (*IamAccessGroupAccountSettings, error)
    public static IamAccessGroupAccountSettings Get(string name, Input<string> id, IamAccessGroupAccountSettingsState? state, CustomResourceOptions? opts = null)
    public static IamAccessGroupAccountSettings get(String name, Output<String> id, IamAccessGroupAccountSettingsState state, CustomResourceOptions options)
    resources:  _:    type: ibm:IamAccessGroupAccountSettings    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
    (String) Unique ID of an account.
    IamAccessGroupAccountSettingsId string
    PublicAccessEnabled bool
    Defines if the public groups are included in the response for access group listing.
    AccountId string
    (String) Unique ID of an account.
    IamAccessGroupAccountSettingsId string
    PublicAccessEnabled bool
    Defines if the public groups are included in the response for access group listing.
    accountId String
    (String) Unique ID of an account.
    iamAccessGroupAccountSettingsId String
    publicAccessEnabled Boolean
    Defines if the public groups are included in the response for access group listing.
    accountId string
    (String) Unique ID of an account.
    iamAccessGroupAccountSettingsId string
    publicAccessEnabled boolean
    Defines if the public groups are included in the response for access group listing.
    account_id str
    (String) Unique ID of an account.
    iam_access_group_account_settings_id str
    public_access_enabled bool
    Defines if the public groups are included in the response for access group listing.
    accountId String
    (String) Unique ID of an account.
    iamAccessGroupAccountSettingsId String
    publicAccessEnabled Boolean
    Defines if the public groups are included in the response for access group listing.

    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