AccessAnalyzer
public struct AccessAnalyzer
Client object for interacting with AWS AccessAnalyzer service.
AWS IAM Access Analyzer helps identify potential resource-access risks by enabling you to identify any policies that grant access to an external principal. It does this by using logic-based reasoning to analyze resource-based policies in your AWS environment. An external principal can be another AWS account, a root user, an IAM user or role, a federated user, an AWS service, or an anonymous user. This guide describes the AWS IAM Access Analyzer operations that you can call programmatically. For general information about Access Analyzer, see the AWS IAM Access Analyzer section of the IAM User Guide. To start using Access Analyzer, you first need to create an analyzer.
-
Undocumented
Declaration
Swift
public let client: AWSClient
-
Initialize the AccessAnalyzer client
Declaration
Swift
public init(accessKeyId: String? = nil, secretAccessKey: String? = nil, sessionToken: String? = nil, region: AWSSDKSwiftCore.Region? = nil, endpoint: String? = nil, middlewares: [AWSServiceMiddleware] = [], eventLoopGroupProvider: AWSClient.EventLoopGroupProvider = .useAWSClientShared)
Parameters
accessKeyId
Public access key provided by AWS
secretAccessKey
Private access key provided by AWS
sessionToken
Token provided by STS.AssumeRole() which allows access to another AWS account
region
Region of server you want to communicate with
endpoint
Custom endpoint URL to use instead of standard AWS servers
middlewares
Array of middlewares to apply to requests and responses
eventLoopGroupProvider
EventLoopGroup to use. Use
useAWSClientShared
if the client shall manage its own EventLoopGroup.
-
Creates an analyzer for your account.
Declaration
Swift
public func createAnalyzer(_ input: CreateAnalyzerRequest) -> EventLoopFuture<CreateAnalyzerResponse>
-
Creates an archive rule for the specified analyzer. Archive rules automatically archive findings that meet the criteria you define when you create the rule.
Declaration
Swift
@discardableResult public func createArchiveRule(_ input: CreateArchiveRuleRequest) -> EventLoopFuture<Void>
-
Deletes the specified analyzer. When you delete an analyzer, Access Analyzer is disabled for the account in the current or specific Region. All findings that were generated by the analyzer are deleted. You cannot undo this action.
Declaration
Swift
@discardableResult public func deleteAnalyzer(_ input: DeleteAnalyzerRequest) -> EventLoopFuture<Void>
-
Deletes the specified archive rule.
Declaration
Swift
@discardableResult public func deleteArchiveRule(_ input: DeleteArchiveRuleRequest) -> EventLoopFuture<Void>
-
Retrieves information about a resource that was analyzed.
Declaration
Swift
public func getAnalyzedResource(_ input: GetAnalyzedResourceRequest) -> EventLoopFuture<GetAnalyzedResourceResponse>
-
Retrieves information about the specified analyzer.
Declaration
Swift
public func getAnalyzer(_ input: GetAnalyzerRequest) -> EventLoopFuture<GetAnalyzerResponse>
-
Retrieves information about an archive rule.
Declaration
Swift
public func getArchiveRule(_ input: GetArchiveRuleRequest) -> EventLoopFuture<GetArchiveRuleResponse>
-
Retrieves information about the specified finding.
Declaration
Swift
public func getFinding(_ input: GetFindingRequest) -> EventLoopFuture<GetFindingResponse>
-
Retrieves a list of resources of the specified type that have been analyzed by the specified analyzer..
Declaration
Swift
public func listAnalyzedResources(_ input: ListAnalyzedResourcesRequest) -> EventLoopFuture<ListAnalyzedResourcesResponse>
-
Retrieves a list of analyzers.
Declaration
Swift
public func listAnalyzers(_ input: ListAnalyzersRequest) -> EventLoopFuture<ListAnalyzersResponse>
-
Retrieves a list of archive rules created for the specified analyzer.
Declaration
Swift
public func listArchiveRules(_ input: ListArchiveRulesRequest) -> EventLoopFuture<ListArchiveRulesResponse>
-
Retrieves a list of findings generated by the specified analyzer.
Declaration
Swift
public func listFindings(_ input: ListFindingsRequest) -> EventLoopFuture<ListFindingsResponse>
-
Retrieves a list of tags applied to the specified resource.
Declaration
Swift
public func listTagsForResource(_ input: ListTagsForResourceRequest) -> EventLoopFuture<ListTagsForResourceResponse>
-
Immediately starts a scan of the policies applied to the specified resource.
Declaration
Swift
@discardableResult public func startResourceScan(_ input: StartResourceScanRequest) -> EventLoopFuture<Void>
-
Adds a tag to the specified resource.
Declaration
Swift
public func tagResource(_ input: TagResourceRequest) -> EventLoopFuture<TagResourceResponse>
-
Removes a tag from the specified resource.
Declaration
Swift
public func untagResource(_ input: UntagResourceRequest) -> EventLoopFuture<UntagResourceResponse>
-
Updates the criteria and values for the specified archive rule.
Declaration
Swift
@discardableResult public func updateArchiveRule(_ input: UpdateArchiveRuleRequest) -> EventLoopFuture<Void>
-
Updates the status for the specified findings.
Declaration
Swift
@discardableResult public func updateFindings(_ input: UpdateFindingsRequest) -> EventLoopFuture<Void>
-
Retrieves a list of resources of the specified type that have been analyzed by the specified analyzer..
Declaration
Swift
public func listAnalyzedResourcesPaginator(_ input: ListAnalyzedResourcesRequest, onPage: @escaping (ListAnalyzedResourcesResponse, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Retrieves a list of analyzers.
Declaration
Swift
public func listAnalyzersPaginator(_ input: ListAnalyzersRequest, onPage: @escaping (ListAnalyzersResponse, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Retrieves a list of archive rules created for the specified analyzer.
Declaration
Swift
public func listArchiveRulesPaginator(_ input: ListArchiveRulesRequest, onPage: @escaping (ListArchiveRulesResponse, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Retrieves a list of findings generated by the specified analyzer.
Declaration
Swift
public func listFindingsPaginator(_ input: ListFindingsRequest, onPage: @escaping (ListFindingsResponse, EventLoop) -> EventLoopFuture<Bool>) -> EventLoopFuture<Void>
-
Undocumented
See moreDeclaration
Swift
public struct ListAnalyzedResourcesRequest : AWSShape
extension AccessAnalyzer.ListAnalyzedResourcesRequest: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct ListAnalyzersRequest : AWSShape
extension AccessAnalyzer.ListAnalyzersRequest: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct ListArchiveRulesRequest : AWSShape
extension AccessAnalyzer.ListArchiveRulesRequest: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public struct ListFindingsRequest : AWSShape
extension AccessAnalyzer.ListFindingsRequest: AWSPaginateStringToken
-
Undocumented
See moreDeclaration
Swift
public enum AnalyzerStatus : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum FindingSourceType : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum FindingStatus : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum FindingStatusUpdate : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum OrderBy : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum ReasonCode : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum ResourceType : String, CustomStringConvertible, Codable
-
Undocumented
See moreDeclaration
Swift
public enum `Type` : String, CustomStringConvertible, Codable