| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.XRay.Types.ResourcePolicy
Description
Synopsis
- data ResourcePolicy = ResourcePolicy' {}
- newResourcePolicy :: ResourcePolicy
- resourcePolicy_lastUpdatedTime :: Lens' ResourcePolicy (Maybe UTCTime)
- resourcePolicy_policyDocument :: Lens' ResourcePolicy (Maybe Text)
- resourcePolicy_policyName :: Lens' ResourcePolicy (Maybe Text)
- resourcePolicy_policyRevisionId :: Lens' ResourcePolicy (Maybe Text)
Documentation
data ResourcePolicy Source #
A resource policy grants one or more Amazon Web Services services and accounts permissions to access X-Ray. Each resource policy is associated with a specific Amazon Web Services account.
See: newResourcePolicy smart constructor.
Constructors
| ResourcePolicy' | |
Fields
| |
Instances
newResourcePolicy :: ResourcePolicy Source #
Create a value of ResourcePolicy with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:lastUpdatedTime:ResourcePolicy', resourcePolicy_lastUpdatedTime - When the policy was last updated, in Unix time seconds.
$sel:policyDocument:ResourcePolicy', resourcePolicy_policyDocument - The resource policy document, which can be up to 5kb in size.
$sel:policyName:ResourcePolicy', resourcePolicy_policyName - The name of the resource policy. Must be unique within a specific Amazon
Web Services account.
$sel:policyRevisionId:ResourcePolicy', resourcePolicy_policyRevisionId - Returns the current policy revision id for this policy name.
resourcePolicy_lastUpdatedTime :: Lens' ResourcePolicy (Maybe UTCTime) Source #
When the policy was last updated, in Unix time seconds.
resourcePolicy_policyDocument :: Lens' ResourcePolicy (Maybe Text) Source #
The resource policy document, which can be up to 5kb in size.
resourcePolicy_policyName :: Lens' ResourcePolicy (Maybe Text) Source #
The name of the resource policy. Must be unique within a specific Amazon Web Services account.
resourcePolicy_policyRevisionId :: Lens' ResourcePolicy (Maybe Text) Source #
Returns the current policy revision id for this policy name.