Class: AWSCDK::Route53::HostedZoneGrants
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::Route53::HostedZoneGrants
- Defined in:
- route53/hosted_zone_grants.rb
Overview
Collection of grant methods for a INamedHostedZoneRef.
Class Method Summary collapse
-
.from_hosted_zone(hosted_zone) ⇒ AWSCDK::Route53::HostedZoneGrants
Creates grants for INamedHostedZoneRef.
- .jsii_overridable_methods ⇒ Object
Instance Method Summary collapse
-
#delegation(grantee, delegation_options = nil) ⇒ AWSCDK::IAM::Grant
Grant permissions to add delegation records to this zone.
-
#initialize(*args) ⇒ HostedZoneGrants
constructor
A new instance of HostedZoneGrants.
Constructor Details
#initialize(*args) ⇒ HostedZoneGrants
Returns a new instance of HostedZoneGrants.
8 9 10 |
# File 'route53/hosted_zone_grants.rb', line 8 def initialize(*args) raise NoMethodError, "aws-cdk-lib.aws_route53.HostedZoneGrants does not have a visible constructor; use the provided factory methods" end |
Class Method Details
.from_hosted_zone(hosted_zone) ⇒ AWSCDK::Route53::HostedZoneGrants
Creates grants for INamedHostedZoneRef.
22 23 24 25 |
# File 'route53/hosted_zone_grants.rb', line 22 def self.from_hosted_zone(hosted_zone) Jsii::Type.check_type(hosted_zone, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfcm91dGU1My5JTmFtZWRIb3N0ZWRab25lUmVmIn0=")), "hostedZone") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_route53.HostedZoneGrants", "fromHostedZone", [hosted_zone]) end |
.jsii_overridable_methods ⇒ Object
12 13 14 15 16 |
# File 'route53/hosted_zone_grants.rb', line 12 def self.jsii_overridable_methods { :delegation => { kind: :method, name: "delegation", is_optional: false }, } end |
Instance Method Details
#delegation(grantee, delegation_options = nil) ⇒ AWSCDK::IAM::Grant
Grant permissions to add delegation records to this zone.
32 33 34 35 36 37 |
# File 'route53/hosted_zone_grants.rb', line 32 def delegation(grantee, = nil) Jsii::Type.check_type(grantee, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklHcmFudGFibGUifQ==")), "grantee") = .is_a?(Hash) ? ::AWSCDK::Route53::GrantDelegationOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfcm91dGU1My5HcmFudERlbGVnYXRpb25PcHRpb25zIn0=")), "delegationOptions") unless .nil? jsii_call_method("delegation", [grantee, ]) end |