/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the imagebuilder-2019-12-02.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Imagebuilder.Model { /// /// Describes the configuration for a launch permission. The launch permission modification /// request is sent to the Amazon /// EC2 ModifyImageAttribute API on behalf of the user for each Region they have selected /// to distribute the AMI. To make an AMI public, set the launch permission authorized /// accounts to all. See the examples for making an AMI public at Amazon /// EC2 ModifyImageAttribute. /// public partial class LaunchPermissionConfiguration { private List _organizationalUnitArns = new List(); private List _organizationArns = new List(); private List _userGroups = new List(); private List _userIds = new List(); /// /// Gets and sets the property OrganizationalUnitArns. /// /// The ARN for an Organizations organizational unit (OU) that you want to share your /// AMI with. For more information about key concepts for Organizations, see Organizations /// terminology and concepts. /// /// [AWSProperty(Min=1, Max=25)] public List OrganizationalUnitArns { get { return this._organizationalUnitArns; } set { this._organizationalUnitArns = value; } } // Check to see if OrganizationalUnitArns property is set internal bool IsSetOrganizationalUnitArns() { return this._organizationalUnitArns != null && this._organizationalUnitArns.Count > 0; } /// /// Gets and sets the property OrganizationArns. /// /// The ARN for an Amazon Web Services Organization that you want to share your AMI with. /// For more information, see What /// is Organizations?. /// /// [AWSProperty(Min=1, Max=25)] public List OrganizationArns { get { return this._organizationArns; } set { this._organizationArns = value; } } // Check to see if OrganizationArns property is set internal bool IsSetOrganizationArns() { return this._organizationArns != null && this._organizationArns.Count > 0; } /// /// Gets and sets the property UserGroups. /// /// The name of the group. /// /// public List UserGroups { get { return this._userGroups; } set { this._userGroups = value; } } // Check to see if UserGroups property is set internal bool IsSetUserGroups() { return this._userGroups != null && this._userGroups.Count > 0; } /// /// Gets and sets the property UserIds. /// /// The Amazon Web Services account ID. /// /// [AWSProperty(Min=1, Max=1536)] public List UserIds { get { return this._userIds; } set { this._userIds = value; } } // Check to see if UserIds property is set internal bool IsSetUserIds() { return this._userIds != null && this._userIds.Count > 0; } } }