AccountPolicyReference Struct
A reference to a AccountPolicy resource.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_logs as interfaces_logs } from 'aws-cdk-lib/interfaces';
const accountPolicyReference: interfaces_logs.AccountPolicyReference = {
accountId: 'accountId',
policyName: 'policyName',
policyType: 'policyType',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_logs as interfaces_logs
account_policy_reference = interfaces_logs.AccountPolicyReference(
account_id="accountId",
policy_name="policyName",
policy_type="policyType"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.interfaces.logs.*;
AccountPolicyReference accountPolicyReference = AccountPolicyReference.builder()
.accountId("accountId")
.policyName("policyName")
.policyType("policyType")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Interfaces.Logs;
var accountPolicyReference = new AccountPolicyReference {
AccountId = "accountId",
PolicyName = "policyName",
PolicyType = "policyType"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
accountPolicyReference := &AccountPolicyReference{
AccountId: jsii.String("accountId"),
PolicyName: jsii.String("policyName"),
PolicyType: jsii.String("policyType"),
}
Properties
The AccountId of the AccountPolicy resource.
The PolicyName of the AccountPolicy resource.
The PolicyType of the AccountPolicy resource.