com.pulumi.aws.imagebuilder.outputs.GetDistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** 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.imagebuilder.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetDistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission {
/**
* @return Set of AWS Organization ARNs.
*
*/
private List organizationArns;
/**
* @return Set of AWS Organizational Unit ARNs.
*
*/
private List organizationalUnitArns;
/**
* @return Set of EC2 launch permission user groups.
*
*/
private List userGroups;
/**
* @return Set of AWS Account identifiers.
*
*/
private List userIds;
private GetDistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission() {}
/**
* @return Set of AWS Organization ARNs.
*
*/
public List organizationArns() {
return this.organizationArns;
}
/**
* @return Set of AWS Organizational Unit ARNs.
*
*/
public List organizationalUnitArns() {
return this.organizationalUnitArns;
}
/**
* @return Set of EC2 launch permission user groups.
*
*/
public List userGroups() {
return this.userGroups;
}
/**
* @return Set of AWS Account identifiers.
*
*/
public List userIds() {
return this.userIds;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetDistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List organizationArns;
private List organizationalUnitArns;
private List userGroups;
private List userIds;
public Builder() {}
public Builder(GetDistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission defaults) {
Objects.requireNonNull(defaults);
this.organizationArns = defaults.organizationArns;
this.organizationalUnitArns = defaults.organizationalUnitArns;
this.userGroups = defaults.userGroups;
this.userIds = defaults.userIds;
}
@CustomType.Setter
public Builder organizationArns(List organizationArns) {
if (organizationArns == null) {
throw new MissingRequiredPropertyException("GetDistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission", "organizationArns");
}
this.organizationArns = organizationArns;
return this;
}
public Builder organizationArns(String... organizationArns) {
return organizationArns(List.of(organizationArns));
}
@CustomType.Setter
public Builder organizationalUnitArns(List organizationalUnitArns) {
if (organizationalUnitArns == null) {
throw new MissingRequiredPropertyException("GetDistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission", "organizationalUnitArns");
}
this.organizationalUnitArns = organizationalUnitArns;
return this;
}
public Builder organizationalUnitArns(String... organizationalUnitArns) {
return organizationalUnitArns(List.of(organizationalUnitArns));
}
@CustomType.Setter
public Builder userGroups(List userGroups) {
if (userGroups == null) {
throw new MissingRequiredPropertyException("GetDistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission", "userGroups");
}
this.userGroups = userGroups;
return this;
}
public Builder userGroups(String... userGroups) {
return userGroups(List.of(userGroups));
}
@CustomType.Setter
public Builder userIds(List userIds) {
if (userIds == null) {
throw new MissingRequiredPropertyException("GetDistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission", "userIds");
}
this.userIds = userIds;
return this;
}
public Builder userIds(String... userIds) {
return userIds(List.of(userIds));
}
public GetDistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission build() {
final var _resultValue = new GetDistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermission();
_resultValue.organizationArns = organizationArns;
_resultValue.organizationalUnitArns = organizationalUnitArns;
_resultValue.userGroups = userGroups;
_resultValue.userIds = userIds;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy