1. Packages
  2. MinIO
  3. API Docs
  4. IamGroupPolicyAttachment
MinIO v0.15.2 published on Friday, Feb 23, 2024 by Pulumi

minio.IamGroupPolicyAttachment

Explore with Pulumi AI

minio logo
MinIO v0.15.2 published on Friday, Feb 23, 2024 by Pulumi

    Example Usage

    Coming soon!

    Coming soon!

    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.minio.IamGroup;
    import com.pulumi.minio.IamGroupPolicy;
    import com.pulumi.minio.IamGroupPolicyArgs;
    import com.pulumi.minio.IamGroupPolicyAttachment;
    import com.pulumi.minio.IamGroupPolicyAttachmentArgs;
    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 developerIamGroup = new IamGroup("developerIamGroup");
    
            var testPolicy = new IamGroupPolicy("testPolicy", IamGroupPolicyArgs.builder()        
                .policy("""
    {
      "Version":"2012-10-17",
      "Statement": [
        {
          "Sid":"ListAllBucket",
          "Effect": "Allow",
          "Action": ["s3:PutObject"],
          "Principal":"*",
          "Resource": "arn:aws:s3:::state-terraform-s3/*"
        }
      ]
    }
                """)
                .build());
    
            var developerIamGroupPolicyAttachment = new IamGroupPolicyAttachment("developerIamGroupPolicyAttachment", IamGroupPolicyAttachmentArgs.builder()        
                .groupName(minio_iam_group.group().name())
                .policyName(minio_iam_policy.test_policy().id())
                .build());
    
            ctx.export("minioName", developerIamGroupPolicyAttachment.id());
            ctx.export("minioUsers", developerIamGroupPolicyAttachment.groupName());
            ctx.export("minioGroup", developerIamGroupPolicyAttachment.policyName());
            var developerIndex_iamGroupPolicyAttachmentIamGroupPolicyAttachment = new IamGroupPolicyAttachment("developerIndex/iamGroupPolicyAttachmentIamGroupPolicyAttachment", IamGroupPolicyAttachmentArgs.builder()        
                .userName("OU=Unit,DC=example,DC=com")
                .policyName(minio_iam_policy.test_policy().id())
                .build());
    
        }
    }
    

    Coming soon!

    Coming soon!

    resources:
      developerIamGroup:
        type: minio:IamGroup
      testPolicy:
        type: minio:IamGroupPolicy
        properties:
          policy: |
            {
              "Version":"2012-10-17",
              "Statement": [
                {
                  "Sid":"ListAllBucket",
                  "Effect": "Allow",
                  "Action": ["s3:PutObject"],
                  "Principal":"*",
                  "Resource": "arn:aws:s3:::state-terraform-s3/*"
                }
              ]
            }        
      developerIamGroupPolicyAttachment:
        type: minio:IamGroupPolicyAttachment
        properties:
          groupName: ${minio_iam_group.group.name}
          policyName: ${minio_iam_policy.test_policy.id}
      developerIndex/iamGroupPolicyAttachmentIamGroupPolicyAttachment:
        type: minio:IamGroupPolicyAttachment
        properties:
          userName: OU=Unit,DC=example,DC=com
          policyName: ${minio_iam_policy.test_policy.id}
    outputs:
      minioName: ${developerIamGroupPolicyAttachment.id}
      minioUsers: ${developerIamGroupPolicyAttachment.groupName}
      minioGroup: ${developerIamGroupPolicyAttachment.policyName} # Example using an LDAP Group instead of a static MinIO group
    

    Create IamGroupPolicyAttachment Resource

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

    Constructor syntax

    new IamGroupPolicyAttachment(name: string, args: IamGroupPolicyAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def IamGroupPolicyAttachment(resource_name: str,
                                 args: IamGroupPolicyAttachmentArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def IamGroupPolicyAttachment(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 group_name: Optional[str] = None,
                                 policy_name: Optional[str] = None)
    func NewIamGroupPolicyAttachment(ctx *Context, name string, args IamGroupPolicyAttachmentArgs, opts ...ResourceOption) (*IamGroupPolicyAttachment, error)
    public IamGroupPolicyAttachment(string name, IamGroupPolicyAttachmentArgs args, CustomResourceOptions? opts = null)
    public IamGroupPolicyAttachment(String name, IamGroupPolicyAttachmentArgs args)
    public IamGroupPolicyAttachment(String name, IamGroupPolicyAttachmentArgs args, CustomResourceOptions options)
    
    type: minio:IamGroupPolicyAttachment
    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 IamGroupPolicyAttachmentArgs
    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 IamGroupPolicyAttachmentArgs
    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 IamGroupPolicyAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IamGroupPolicyAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IamGroupPolicyAttachmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

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

    var iamGroupPolicyAttachmentResource = new Minio.IamGroupPolicyAttachment("iamGroupPolicyAttachmentResource", new()
    {
        GroupName = "string",
        PolicyName = "string",
    });
    
    example, err := minio.NewIamGroupPolicyAttachment(ctx, "iamGroupPolicyAttachmentResource", &minio.IamGroupPolicyAttachmentArgs{
    	GroupName:  pulumi.String("string"),
    	PolicyName: pulumi.String("string"),
    })
    
    var iamGroupPolicyAttachmentResource = new IamGroupPolicyAttachment("iamGroupPolicyAttachmentResource", IamGroupPolicyAttachmentArgs.builder()        
        .groupName("string")
        .policyName("string")
        .build());
    
    iam_group_policy_attachment_resource = minio.IamGroupPolicyAttachment("iamGroupPolicyAttachmentResource",
        group_name="string",
        policy_name="string")
    
    const iamGroupPolicyAttachmentResource = new minio.IamGroupPolicyAttachment("iamGroupPolicyAttachmentResource", {
        groupName: "string",
        policyName: "string",
    });
    
    type: minio:IamGroupPolicyAttachment
    properties:
        groupName: string
        policyName: string
    

    IamGroupPolicyAttachment Resource Properties

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

    Inputs

    The IamGroupPolicyAttachment resource accepts the following input properties:

    GroupName string
    PolicyName string
    GroupName string
    PolicyName string
    groupName String
    policyName String
    groupName string
    policyName string
    groupName String
    policyName String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the IamGroupPolicyAttachment 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 IamGroupPolicyAttachment Resource

    Get an existing IamGroupPolicyAttachment 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?: IamGroupPolicyAttachmentState, opts?: CustomResourceOptions): IamGroupPolicyAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            group_name: Optional[str] = None,
            policy_name: Optional[str] = None) -> IamGroupPolicyAttachment
    func GetIamGroupPolicyAttachment(ctx *Context, name string, id IDInput, state *IamGroupPolicyAttachmentState, opts ...ResourceOption) (*IamGroupPolicyAttachment, error)
    public static IamGroupPolicyAttachment Get(string name, Input<string> id, IamGroupPolicyAttachmentState? state, CustomResourceOptions? opts = null)
    public static IamGroupPolicyAttachment get(String name, Output<String> id, IamGroupPolicyAttachmentState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    GroupName string
    PolicyName string
    GroupName string
    PolicyName string
    groupName String
    policyName String
    groupName string
    policyName string
    groupName String
    policyName String

    Package Details

    Repository
    MinIO pulumi/pulumi-minio
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the minio Terraform Provider.
    minio logo
    MinIO v0.15.2 published on Friday, Feb 23, 2024 by Pulumi