class HostedZoneGrants
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Route53.HostedZoneGrants |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsroute53#HostedZoneGrants |
Java | software.amazon.awscdk.services.route53.HostedZoneGrants |
Python | aws_cdk.aws_route53.HostedZoneGrants |
TypeScript (source) | aws-cdk-lib » aws_route53 » HostedZoneGrants |
Collection of grant methods for a INamedHostedZoneRef.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_route53 as route53 } from 'aws-cdk-lib';
declare const namedHostedZoneRef: route53.INamedHostedZoneRef;
const hostedZoneGrants = route53.HostedZoneGrants.fromHostedZone(namedHostedZoneRef);
Methods
| Name | Description |
|---|---|
| delegation(grantee, delegationOptions?) | Grant permissions to add delegation records to this zone. |
| static from | Creates grants for INamedHostedZoneRef. |
delegation(grantee, delegationOptions?)
public delegation(grantee: IGrantable, delegationOptions?: GrantDelegationOptions): Grant
Parameters
- grantee
IGrantable - delegationOptions
GrantDelegation Options
Returns
Grant permissions to add delegation records to this zone.
static fromHostedZone(hostedZone)
public static fromHostedZone(hostedZone: INamedHostedZoneRef): HostedZoneGrants
Parameters
- hostedZone
INamedHosted Zone Ref
Returns
Creates grants for INamedHostedZoneRef.

.NET
Go
Java
Python
TypeScript (