All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.iam.RolePoliciesExclusive Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.iam;

import com.pulumi.aws.Utilities;
import com.pulumi.aws.iam.RolePoliciesExclusiveArgs;
import com.pulumi.aws.iam.inputs.RolePoliciesExclusiveState;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import javax.annotation.Nullable;

/**
 * ## Import
 * 
 * Using `pulumi import`, import exclusive management of inline policy assignments using the `role_name`. For example:
 * 
 * ```sh
 * $ pulumi import aws:iam/rolePoliciesExclusive:RolePoliciesExclusive example MyRole
 * ```
 * 
 */
@ResourceType(type="aws:iam/rolePoliciesExclusive:RolePoliciesExclusive")
public class RolePoliciesExclusive extends com.pulumi.resources.CustomResource {
    /**
     * A list of inline policy names to be assigned to the role. Policies attached to this role but not configured in this argument will be removed.
     * 
     */
    @Export(name="policyNames", refs={List.class,String.class}, tree="[0,1]")
    private Output> policyNames;

    /**
     * @return A list of inline policy names to be assigned to the role. Policies attached to this role but not configured in this argument will be removed.
     * 
     */
    public Output> policyNames() {
        return this.policyNames;
    }
    /**
     * IAM role name.
     * 
     */
    @Export(name="roleName", refs={String.class}, tree="[0]")
    private Output roleName;

    /**
     * @return IAM role name.
     * 
     */
    public Output roleName() {
        return this.roleName;
    }

    /**
     *
     * @param name The _unique_ name of the resulting resource.
     */
    public RolePoliciesExclusive(java.lang.String name) {
        this(name, RolePoliciesExclusiveArgs.Empty);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     */
    public RolePoliciesExclusive(java.lang.String name, RolePoliciesExclusiveArgs args) {
        this(name, args, null);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     * @param options A bag of options that control this resource's behavior.
     */
    public RolePoliciesExclusive(java.lang.String name, RolePoliciesExclusiveArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("aws:iam/rolePoliciesExclusive:RolePoliciesExclusive", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
    }

    private RolePoliciesExclusive(java.lang.String name, Output id, @Nullable RolePoliciesExclusiveState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("aws:iam/rolePoliciesExclusive:RolePoliciesExclusive", name, state, makeResourceOptions(options, id), false);
    }

    private static RolePoliciesExclusiveArgs makeArgs(RolePoliciesExclusiveArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        if (options != null && options.getUrn().isPresent()) {
            return null;
        }
        return args == null ? RolePoliciesExclusiveArgs.Empty : args;
    }

    private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
        var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
            .version(Utilities.getVersion())
            .build();
        return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
    }

    /**
     * Get an existing Host resource's state with the given name, ID, and optional extra
     * properties used to qualify the lookup.
     *
     * @param name The _unique_ name of the resulting resource.
     * @param id The _unique_ provider ID of the resource to lookup.
     * @param state
     * @param options Optional settings to control the behavior of the CustomResource.
     */
    public static RolePoliciesExclusive get(java.lang.String name, Output id, @Nullable RolePoliciesExclusiveState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        return new RolePoliciesExclusive(name, id, state, options);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy