You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::ACMPCA::Types::CreatePermissionRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-acmpca/lib/aws-sdk-acmpca/types.rb

Overview

Note:

When making an API call, you may pass CreatePermissionRequest data as a hash:

{
  certificate_authority_arn: "Arn", # required
  principal: "Principal", # required
  source_account: "AccountId",
  actions: ["IssueCertificate"], # required, accepts IssueCertificate, GetCertificate, ListPermissions
}

Instance Attribute Summary collapse

Instance Attribute Details

#actionsArray<String>

The actions that the specified AWS service principal can use. These include IssueCertificate, GetCertificate, and ListPermissions.

Returns:

  • (Array<String>)


494
495
496
497
498
499
500
# File 'gems/aws-sdk-acmpca/lib/aws-sdk-acmpca/types.rb', line 494

class CreatePermissionRequest < Struct.new(
  :certificate_authority_arn,
  :principal,
  :source_account,
  :actions)
  include Aws::Structure
end

#certificate_authority_arnString

The Amazon Resource Name (ARN) of the CA that grants the permissions. You can find the ARN by calling the ListCertificateAuthorities action. This must have the following form:

arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 .

Returns:

  • (String)


494
495
496
497
498
499
500
# File 'gems/aws-sdk-acmpca/lib/aws-sdk-acmpca/types.rb', line 494

class CreatePermissionRequest < Struct.new(
  :certificate_authority_arn,
  :principal,
  :source_account,
  :actions)
  include Aws::Structure
end

#principalString

The AWS service or identity that receives the permission. At this time, the only valid principal is acm.amazonaws.com.

Returns:

  • (String)


494
495
496
497
498
499
500
# File 'gems/aws-sdk-acmpca/lib/aws-sdk-acmpca/types.rb', line 494

class CreatePermissionRequest < Struct.new(
  :certificate_authority_arn,
  :principal,
  :source_account,
  :actions)
  include Aws::Structure
end

#source_accountString

The ID of the calling account.

Returns:

  • (String)


494
495
496
497
498
499
500
# File 'gems/aws-sdk-acmpca/lib/aws-sdk-acmpca/types.rb', line 494

class CreatePermissionRequest < Struct.new(
  :certificate_authority_arn,
  :principal,
  :source_account,
  :actions)
  include Aws::Structure
end