Class: AWSCDK::SecretsManager::HostedRotation

Inherits:
Jsii::Object
  • Object
show all
Includes:
EC2::IConnectable
Defined in:
secrets_manager/hosted_rotation.rb

Overview

A hosted rotation.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ HostedRotation

Returns a new instance of HostedRotation.

Raises:

  • (NoMethodError)


9
10
11
# File 'secrets_manager/hosted_rotation.rb', line 9

def initialize(*args)
  raise NoMethodError, "aws-cdk-lib.aws_secretsmanager.HostedRotation does not have a visible constructor; use the provided factory methods"
end

Class Method Details

.jsii_overridable_methodsObject



13
14
15
16
17
18
# File 'secrets_manager/hosted_rotation.rb', line 13

def self.jsii_overridable_methods
  {
    :connections => { kind: :property, name: "connections", is_optional: false },
    :bind => { kind: :method, name: "bind", is_optional: false },
  }
end

.maria_db_multi_user(options) ⇒ AWSCDK::SecretsManager::HostedRotation

MariaDB Multi User.

Parameters:

Returns:

  • (AWSCDK::SecretsManager::HostedRotation)


24
25
26
27
28
# File 'secrets_manager/hosted_rotation.rb', line 24

def self.maria_db_multi_user(options)
  options = options.is_a?(Hash) ? ::AWSCDK::SecretsManager::MultiUserHostedRotationOptions.new(**options.transform_keys(&:to_sym)) : options
  Jsii::Type.check_type(options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuTXVsdGlVc2VySG9zdGVkUm90YXRpb25PcHRpb25zIn0=")), "options")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_secretsmanager.HostedRotation", "mariaDbMultiUser", [options])
end

.maria_db_single_user(options = nil) ⇒ AWSCDK::SecretsManager::HostedRotation

MariaDB Single User.

Parameters:

Returns:

  • (AWSCDK::SecretsManager::HostedRotation)


34
35
36
37
38
# File 'secrets_manager/hosted_rotation.rb', line 34

def self.maria_db_single_user(options = nil)
  options = options.is_a?(Hash) ? ::AWSCDK::SecretsManager::SingleUserHostedRotationOptions.new(**options.transform_keys(&:to_sym)) : options
  Jsii::Type.check_type(options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuU2luZ2xlVXNlckhvc3RlZFJvdGF0aW9uT3B0aW9ucyJ9")), "options") unless options.nil?
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_secretsmanager.HostedRotation", "mariaDbSingleUser", [options])
end

.mongo_db_multi_user(options) ⇒ AWSCDK::SecretsManager::HostedRotation

MongoDB Multi User.

Parameters:

Returns:

  • (AWSCDK::SecretsManager::HostedRotation)


44
45
46
47
48
# File 'secrets_manager/hosted_rotation.rb', line 44

def self.mongo_db_multi_user(options)
  options = options.is_a?(Hash) ? ::AWSCDK::SecretsManager::MultiUserHostedRotationOptions.new(**options.transform_keys(&:to_sym)) : options
  Jsii::Type.check_type(options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuTXVsdGlVc2VySG9zdGVkUm90YXRpb25PcHRpb25zIn0=")), "options")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_secretsmanager.HostedRotation", "mongoDbMultiUser", [options])
end

.mongo_db_single_user(options = nil) ⇒ AWSCDK::SecretsManager::HostedRotation

MongoDB Single User.

Parameters:

Returns:

  • (AWSCDK::SecretsManager::HostedRotation)


54
55
56
57
58
# File 'secrets_manager/hosted_rotation.rb', line 54

def self.mongo_db_single_user(options = nil)
  options = options.is_a?(Hash) ? ::AWSCDK::SecretsManager::SingleUserHostedRotationOptions.new(**options.transform_keys(&:to_sym)) : options
  Jsii::Type.check_type(options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuU2luZ2xlVXNlckhvc3RlZFJvdGF0aW9uT3B0aW9ucyJ9")), "options") unless options.nil?
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_secretsmanager.HostedRotation", "mongoDbSingleUser", [options])
end

.mysql_multi_user(options) ⇒ AWSCDK::SecretsManager::HostedRotation

MySQL Multi User.

Parameters:

Returns:

  • (AWSCDK::SecretsManager::HostedRotation)


64
65
66
67
68
# File 'secrets_manager/hosted_rotation.rb', line 64

def self.mysql_multi_user(options)
  options = options.is_a?(Hash) ? ::AWSCDK::SecretsManager::MultiUserHostedRotationOptions.new(**options.transform_keys(&:to_sym)) : options
  Jsii::Type.check_type(options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuTXVsdGlVc2VySG9zdGVkUm90YXRpb25PcHRpb25zIn0=")), "options")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_secretsmanager.HostedRotation", "mysqlMultiUser", [options])
end

.mysql_single_user(options = nil) ⇒ AWSCDK::SecretsManager::HostedRotation

MySQL Single User.

Parameters:

Returns:

  • (AWSCDK::SecretsManager::HostedRotation)


74
75
76
77
78
# File 'secrets_manager/hosted_rotation.rb', line 74

def self.mysql_single_user(options = nil)
  options = options.is_a?(Hash) ? ::AWSCDK::SecretsManager::SingleUserHostedRotationOptions.new(**options.transform_keys(&:to_sym)) : options
  Jsii::Type.check_type(options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuU2luZ2xlVXNlckhvc3RlZFJvdGF0aW9uT3B0aW9ucyJ9")), "options") unless options.nil?
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_secretsmanager.HostedRotation", "mysqlSingleUser", [options])
end

.oracle_multi_user(options) ⇒ AWSCDK::SecretsManager::HostedRotation

Oracle Multi User.

Parameters:

Returns:

  • (AWSCDK::SecretsManager::HostedRotation)


84
85
86
87
88
# File 'secrets_manager/hosted_rotation.rb', line 84

def self.oracle_multi_user(options)
  options = options.is_a?(Hash) ? ::AWSCDK::SecretsManager::MultiUserHostedRotationOptions.new(**options.transform_keys(&:to_sym)) : options
  Jsii::Type.check_type(options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuTXVsdGlVc2VySG9zdGVkUm90YXRpb25PcHRpb25zIn0=")), "options")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_secretsmanager.HostedRotation", "oracleMultiUser", [options])
end

.oracle_single_user(options = nil) ⇒ AWSCDK::SecretsManager::HostedRotation

Oracle Single User.

Parameters:

Returns:

  • (AWSCDK::SecretsManager::HostedRotation)


94
95
96
97
98
# File 'secrets_manager/hosted_rotation.rb', line 94

def self.oracle_single_user(options = nil)
  options = options.is_a?(Hash) ? ::AWSCDK::SecretsManager::SingleUserHostedRotationOptions.new(**options.transform_keys(&:to_sym)) : options
  Jsii::Type.check_type(options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuU2luZ2xlVXNlckhvc3RlZFJvdGF0aW9uT3B0aW9ucyJ9")), "options") unless options.nil?
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_secretsmanager.HostedRotation", "oracleSingleUser", [options])
end

.postgre_sql_multi_user(options) ⇒ AWSCDK::SecretsManager::HostedRotation

PostgreSQL Multi User.

Parameters:

Returns:

  • (AWSCDK::SecretsManager::HostedRotation)


104
105
106
107
108
# File 'secrets_manager/hosted_rotation.rb', line 104

def self.postgre_sql_multi_user(options)
  options = options.is_a?(Hash) ? ::AWSCDK::SecretsManager::MultiUserHostedRotationOptions.new(**options.transform_keys(&:to_sym)) : options
  Jsii::Type.check_type(options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuTXVsdGlVc2VySG9zdGVkUm90YXRpb25PcHRpb25zIn0=")), "options")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_secretsmanager.HostedRotation", "postgreSqlMultiUser", [options])
end

.postgre_sql_single_user(options = nil) ⇒ AWSCDK::SecretsManager::HostedRotation

PostgreSQL Single User.

Parameters:

Returns:

  • (AWSCDK::SecretsManager::HostedRotation)


114
115
116
117
118
# File 'secrets_manager/hosted_rotation.rb', line 114

def self.postgre_sql_single_user(options = nil)
  options = options.is_a?(Hash) ? ::AWSCDK::SecretsManager::SingleUserHostedRotationOptions.new(**options.transform_keys(&:to_sym)) : options
  Jsii::Type.check_type(options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuU2luZ2xlVXNlckhvc3RlZFJvdGF0aW9uT3B0aW9ucyJ9")), "options") unless options.nil?
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_secretsmanager.HostedRotation", "postgreSqlSingleUser", [options])
end

.redshift_multi_user(options) ⇒ AWSCDK::SecretsManager::HostedRotation

Redshift Multi User.

Parameters:

Returns:

  • (AWSCDK::SecretsManager::HostedRotation)


124
125
126
127
128
# File 'secrets_manager/hosted_rotation.rb', line 124

def self.redshift_multi_user(options)
  options = options.is_a?(Hash) ? ::AWSCDK::SecretsManager::MultiUserHostedRotationOptions.new(**options.transform_keys(&:to_sym)) : options
  Jsii::Type.check_type(options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuTXVsdGlVc2VySG9zdGVkUm90YXRpb25PcHRpb25zIn0=")), "options")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_secretsmanager.HostedRotation", "redshiftMultiUser", [options])
end

.redshift_single_user(options = nil) ⇒ AWSCDK::SecretsManager::HostedRotation

Redshift Single User.

Parameters:

Returns:

  • (AWSCDK::SecretsManager::HostedRotation)


134
135
136
137
138
# File 'secrets_manager/hosted_rotation.rb', line 134

def self.redshift_single_user(options = nil)
  options = options.is_a?(Hash) ? ::AWSCDK::SecretsManager::SingleUserHostedRotationOptions.new(**options.transform_keys(&:to_sym)) : options
  Jsii::Type.check_type(options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuU2luZ2xlVXNlckhvc3RlZFJvdGF0aW9uT3B0aW9ucyJ9")), "options") unless options.nil?
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_secretsmanager.HostedRotation", "redshiftSingleUser", [options])
end

.sql_server_multi_user(options) ⇒ AWSCDK::SecretsManager::HostedRotation

SQL Server Multi User.

Parameters:

Returns:

  • (AWSCDK::SecretsManager::HostedRotation)


144
145
146
147
148
# File 'secrets_manager/hosted_rotation.rb', line 144

def self.sql_server_multi_user(options)
  options = options.is_a?(Hash) ? ::AWSCDK::SecretsManager::MultiUserHostedRotationOptions.new(**options.transform_keys(&:to_sym)) : options
  Jsii::Type.check_type(options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuTXVsdGlVc2VySG9zdGVkUm90YXRpb25PcHRpb25zIn0=")), "options")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_secretsmanager.HostedRotation", "sqlServerMultiUser", [options])
end

.sql_server_single_user(options = nil) ⇒ AWSCDK::SecretsManager::HostedRotation

SQL Server Single User.

Parameters:

Returns:

  • (AWSCDK::SecretsManager::HostedRotation)


154
155
156
157
158
# File 'secrets_manager/hosted_rotation.rb', line 154

def self.sql_server_single_user(options = nil)
  options = options.is_a?(Hash) ? ::AWSCDK::SecretsManager::SingleUserHostedRotationOptions.new(**options.transform_keys(&:to_sym)) : options
  Jsii::Type.check_type(options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuU2luZ2xlVXNlckhvc3RlZFJvdGF0aW9uT3B0aW9ucyJ9")), "options") unless options.nil?
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_secretsmanager.HostedRotation", "sqlServerSingleUser", [options])
end

Instance Method Details

#bind(secret, scope) ⇒ AWSCDK::SecretsManager::CfnRotationSchedule::HostedRotationLambdaProperty

Binds this hosted rotation to a secret.



172
173
174
175
176
# File 'secrets_manager/hosted_rotation.rb', line 172

def bind(secret, scope)
  Jsii::Type.check_type(secret, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuSVNlY3JldCJ9")), "secret")
  Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope")
  jsii_call_method("bind", [secret, scope])
end

#connectionsAWSCDK::EC2::Connections

Security group connections for this hosted rotation.



163
164
165
# File 'secrets_manager/hosted_rotation.rb', line 163

def connections()
  jsii_get_property("connections")
end