1. Packages
  2. Coralogix Provider
  3. API Docs
  4. GroupAttachment
coralogix 2.0.17 published on Tuesday, Apr 22, 2025 by coralogix

coralogix.GroupAttachment

Explore with Pulumi AI

coralogix logo
coralogix 2.0.17 published on Tuesday, Apr 22, 2025 by coralogix

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.coralogix.User;
    import com.pulumi.coralogix.UserArgs;
    import com.pulumi.coralogix.inputs.UserNameArgs;
    import com.pulumi.coralogix.CoralogixFunctions;
    import com.pulumi.coralogix.inputs.GetGroupArgs;
    import com.pulumi.coralogix.GroupAttachment;
    import com.pulumi.coralogix.GroupAttachmentArgs;
    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 exampleUser = new User("exampleUser", UserArgs.builder()
                .userName("example@coralogix.com")
                .name(UserNameArgs.builder()
                    .given_name("example")
                    .family_name("example")
                    .build())
                .build());
    
            var example2 = new User("example2", UserArgs.builder()
                .userName("example2@coralogix.com")
                .name(UserNameArgs.builder()
                    .given_name("example2")
                    .family_name("example2")
                    .build())
                .build());
    
            final var exampleGroup = CoralogixFunctions.getGroup(GetGroupArgs.builder()
                .displayName("ReadOnlyUsers")
                .build());
    
            var exampleGroupAttachment = new GroupAttachment("exampleGroupAttachment", GroupAttachmentArgs.builder()
                .groupId(exampleGroup.applyValue(getGroupResult -> getGroupResult.id()))
                .userIds(            
                    exampleUser.id(),
                    example2.id())
                .build());
    
        }
    }
    
    resources:
      exampleUser:
        type: coralogix:User
        properties:
          userName: example@coralogix.com
          name:
            given_name: example
            family_name: example
      example2:
        type: coralogix:User
        properties:
          userName: example2@coralogix.com
          name:
            given_name: example2
            family_name: example2
      exampleGroupAttachment:
        type: coralogix:GroupAttachment
        properties:
          groupId: ${exampleGroup.id}
          userIds:
            - ${exampleUser.id}
            - ${example2.id}
    variables:
      exampleGroup:
        fn::invoke:
          function: coralogix:getGroup
          arguments:
            displayName: ReadOnlyUsers
    

    Create GroupAttachment Resource

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

    Constructor syntax

    new GroupAttachment(name: string, args: GroupAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def GroupAttachment(resource_name: str,
                        args: GroupAttachmentArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def GroupAttachment(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        group_id: Optional[str] = None,
                        user_ids: Optional[Sequence[str]] = None)
    func NewGroupAttachment(ctx *Context, name string, args GroupAttachmentArgs, opts ...ResourceOption) (*GroupAttachment, error)
    public GroupAttachment(string name, GroupAttachmentArgs args, CustomResourceOptions? opts = null)
    public GroupAttachment(String name, GroupAttachmentArgs args)
    public GroupAttachment(String name, GroupAttachmentArgs args, CustomResourceOptions options)
    
    type: coralogix:GroupAttachment
    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 GroupAttachmentArgs
    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 GroupAttachmentArgs
    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 GroupAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GroupAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GroupAttachmentArgs
    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 groupAttachmentResource = new Coralogix.GroupAttachment("groupAttachmentResource", new()
    {
        GroupId = "string",
        UserIds = new[]
        {
            "string",
        },
    });
    
    example, err := coralogix.NewGroupAttachment(ctx, "groupAttachmentResource", &coralogix.GroupAttachmentArgs{
    	GroupId: pulumi.String("string"),
    	UserIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var groupAttachmentResource = new GroupAttachment("groupAttachmentResource", GroupAttachmentArgs.builder()
        .groupId("string")
        .userIds("string")
        .build());
    
    group_attachment_resource = coralogix.GroupAttachment("groupAttachmentResource",
        group_id="string",
        user_ids=["string"])
    
    const groupAttachmentResource = new coralogix.GroupAttachment("groupAttachmentResource", {
        groupId: "string",
        userIds: ["string"],
    });
    
    type: coralogix:GroupAttachment
    properties:
        groupId: string
        userIds:
            - string
    

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

    GroupId string
    The ID of the group to attach the users to
    UserIds List<string>
    The IDs of the users to attach to the group
    GroupId string
    The ID of the group to attach the users to
    UserIds []string
    The IDs of the users to attach to the group
    groupId String
    The ID of the group to attach the users to
    userIds List<String>
    The IDs of the users to attach to the group
    groupId string
    The ID of the group to attach the users to
    userIds string[]
    The IDs of the users to attach to the group
    group_id str
    The ID of the group to attach the users to
    user_ids Sequence[str]
    The IDs of the users to attach to the group
    groupId String
    The ID of the group to attach the users to
    userIds List<String>
    The IDs of the users to attach to the group

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing GroupAttachment Resource

    Get an existing GroupAttachment 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?: GroupAttachmentState, opts?: CustomResourceOptions): GroupAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            group_id: Optional[str] = None,
            user_ids: Optional[Sequence[str]] = None) -> GroupAttachment
    func GetGroupAttachment(ctx *Context, name string, id IDInput, state *GroupAttachmentState, opts ...ResourceOption) (*GroupAttachment, error)
    public static GroupAttachment Get(string name, Input<string> id, GroupAttachmentState? state, CustomResourceOptions? opts = null)
    public static GroupAttachment get(String name, Output<String> id, GroupAttachmentState state, CustomResourceOptions options)
    resources:  _:    type: coralogix:GroupAttachment    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:
    GroupId string
    The ID of the group to attach the users to
    UserIds List<string>
    The IDs of the users to attach to the group
    GroupId string
    The ID of the group to attach the users to
    UserIds []string
    The IDs of the users to attach to the group
    groupId String
    The ID of the group to attach the users to
    userIds List<String>
    The IDs of the users to attach to the group
    groupId string
    The ID of the group to attach the users to
    userIds string[]
    The IDs of the users to attach to the group
    group_id str
    The ID of the group to attach the users to
    user_ids Sequence[str]
    The IDs of the users to attach to the group
    groupId String
    The ID of the group to attach the users to
    userIds List<String>
    The IDs of the users to attach to the group

    Package Details

    Repository
    coralogix coralogix/terraform-provider-coralogix
    License
    Notes
    This Pulumi package is based on the coralogix Terraform Provider.
    coralogix logo
    coralogix 2.0.17 published on Tuesday, Apr 22, 2025 by coralogix