com.pulumi.aws.ssoadmin.outputs.PermissionsBoundaryAttachmentPermissionsBoundaryCustomerManagedPolicyReference Maven / Gradle / Ivy
// *** 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.ssoadmin.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class PermissionsBoundaryAttachmentPermissionsBoundaryCustomerManagedPolicyReference {
/**
* @return Name of the customer managed IAM Policy to be attached.
*
*/
private String name;
/**
* @return The path to the IAM policy to be attached. The default is `/`. See [IAM Identifiers](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-friendly-names) for more information.
*
*/
private @Nullable String path;
private PermissionsBoundaryAttachmentPermissionsBoundaryCustomerManagedPolicyReference() {}
/**
* @return Name of the customer managed IAM Policy to be attached.
*
*/
public String name() {
return this.name;
}
/**
* @return The path to the IAM policy to be attached. The default is `/`. See [IAM Identifiers](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-friendly-names) for more information.
*
*/
public Optional path() {
return Optional.ofNullable(this.path);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PermissionsBoundaryAttachmentPermissionsBoundaryCustomerManagedPolicyReference defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String name;
private @Nullable String path;
public Builder() {}
public Builder(PermissionsBoundaryAttachmentPermissionsBoundaryCustomerManagedPolicyReference defaults) {
Objects.requireNonNull(defaults);
this.name = defaults.name;
this.path = defaults.path;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("PermissionsBoundaryAttachmentPermissionsBoundaryCustomerManagedPolicyReference", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder path(@Nullable String path) {
this.path = path;
return this;
}
public PermissionsBoundaryAttachmentPermissionsBoundaryCustomerManagedPolicyReference build() {
final var _resultValue = new PermissionsBoundaryAttachmentPermissionsBoundaryCustomerManagedPolicyReference();
_resultValue.name = name;
_resultValue.path = path;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy