/*
* 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 accessanalyzer-2019-11-01.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.AccessAnalyzer.Model
{
///
/// Container for the parameters to the GetGeneratedPolicy operation.
/// Retrieves the policy that was generated using StartPolicyGeneration
.
///
public partial class GetGeneratedPolicyRequest : AmazonAccessAnalyzerRequest
{
private bool? _includeResourcePlaceholders;
private bool? _includeServiceLevelTemplate;
private string _jobId;
///
/// Gets and sets the property IncludeResourcePlaceholders.
///
/// The level of detail that you want to generate. You can specify whether to generate
/// policies with placeholders for resource ARNs for actions that support resource level
/// granularity in policies.
///
///
///
/// For example, in the resource section of a policy, you can receive a placeholder such
/// as "Resource":"arn:aws:s3:::${BucketName}"
instead of "*"
.
///
///
public bool IncludeResourcePlaceholders
{
get { return this._includeResourcePlaceholders.GetValueOrDefault(); }
set { this._includeResourcePlaceholders = value; }
}
// Check to see if IncludeResourcePlaceholders property is set
internal bool IsSetIncludeResourcePlaceholders()
{
return this._includeResourcePlaceholders.HasValue;
}
///
/// Gets and sets the property IncludeServiceLevelTemplate.
///
/// The level of detail that you want to generate. You can specify whether to generate
/// service-level policies.
///
///
///
/// IAM Access Analyzer uses iam:servicelastaccessed
to identify services
/// that have been used recently to create this service-level template.
///
///
public bool IncludeServiceLevelTemplate
{
get { return this._includeServiceLevelTemplate.GetValueOrDefault(); }
set { this._includeServiceLevelTemplate = value; }
}
// Check to see if IncludeServiceLevelTemplate property is set
internal bool IsSetIncludeServiceLevelTemplate()
{
return this._includeServiceLevelTemplate.HasValue;
}
///
/// Gets and sets the property JobId.
///
/// The JobId
that is returned by the StartPolicyGeneration
/// operation. The JobId
can be used with GetGeneratedPolicy
/// to retrieve the generated policies or used with CancelPolicyGeneration
/// to cancel the policy generation request.
///
///
[AWSProperty(Required=true)]
public string JobId
{
get { return this._jobId; }
set { this._jobId = value; }
}
// Check to see if JobId property is set
internal bool IsSetJobId()
{
return this._jobId != null;
}
}
}