Get Generated Policy
accessanalyzer_get_generated_policy | R Documentation |
Retrieves the policy that was generated using StartPolicyGeneration¶
Description¶
Retrieves the policy that was generated using start_policy_generation
.
Usage¶
accessanalyzer_get_generated_policy(jobId, includeResourcePlaceholders,
includeServiceLevelTemplate)
Arguments¶
jobId |
[required] The |
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 |
includeServiceLevelTemplate |
The level of detail that you want to generate. You can specify whether to generate service-level policies. IAM Access Analyzer uses |
Value¶
A list with the following syntax:
list(
jobDetails = list(
jobId = "string",
status = "IN_PROGRESS"|"SUCCEEDED"|"FAILED"|"CANCELED",
startedOn = as.POSIXct(
"2015-01-01"
),
completedOn = as.POSIXct(
"2015-01-01"
),
jobError = list(
code = "AUTHORIZATION_ERROR"|"RESOURCE_NOT_FOUND_ERROR"|"SERVICE_QUOTA_EXCEEDED_ERROR"|"SERVICE_ERROR",
message = "string"
)
),
generatedPolicyResult = list(
properties = list(
isComplete = TRUE|FALSE,
principalArn = "string",
cloudTrailProperties = list(
trailProperties = list(
list(
cloudTrailArn = "string",
regions = list(
"string"
),
allRegions = TRUE|FALSE
)
),
startTime = as.POSIXct(
"2015-01-01"
),
endTime = as.POSIXct(
"2015-01-01"
)
)
),
generatedPolicies = list(
list(
policy = "string"
)
)
)
)
Request syntax¶
svc$get_generated_policy(
jobId = "string",
includeResourcePlaceholders = TRUE|FALSE,
includeServiceLevelTemplate = TRUE|FALSE
)