Class: AWSCDK::SecretsManager::HostedRotation
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::SecretsManager::HostedRotation
- Includes:
- EC2::IConnectable
- Defined in:
- secrets_manager/hosted_rotation.rb
Overview
A hosted rotation.
Class Method Summary collapse
- .jsii_overridable_methods ⇒ Object
-
.maria_db_multi_user(options) ⇒ AWSCDK::SecretsManager::HostedRotation
MariaDB Multi User.
-
.maria_db_single_user(options = nil) ⇒ AWSCDK::SecretsManager::HostedRotation
MariaDB Single User.
-
.mongo_db_multi_user(options) ⇒ AWSCDK::SecretsManager::HostedRotation
MongoDB Multi User.
-
.mongo_db_single_user(options = nil) ⇒ AWSCDK::SecretsManager::HostedRotation
MongoDB Single User.
-
.mysql_multi_user(options) ⇒ AWSCDK::SecretsManager::HostedRotation
MySQL Multi User.
-
.mysql_single_user(options = nil) ⇒ AWSCDK::SecretsManager::HostedRotation
MySQL Single User.
-
.oracle_multi_user(options) ⇒ AWSCDK::SecretsManager::HostedRotation
Oracle Multi User.
-
.oracle_single_user(options = nil) ⇒ AWSCDK::SecretsManager::HostedRotation
Oracle Single User.
-
.postgre_sql_multi_user(options) ⇒ AWSCDK::SecretsManager::HostedRotation
PostgreSQL Multi User.
-
.postgre_sql_single_user(options = nil) ⇒ AWSCDK::SecretsManager::HostedRotation
PostgreSQL Single User.
-
.redshift_multi_user(options) ⇒ AWSCDK::SecretsManager::HostedRotation
Redshift Multi User.
-
.redshift_single_user(options = nil) ⇒ AWSCDK::SecretsManager::HostedRotation
Redshift Single User.
-
.sql_server_multi_user(options) ⇒ AWSCDK::SecretsManager::HostedRotation
SQL Server Multi User.
-
.sql_server_single_user(options = nil) ⇒ AWSCDK::SecretsManager::HostedRotation
SQL Server Single User.
Instance Method Summary collapse
-
#bind(secret, scope) ⇒ AWSCDK::SecretsManager::CfnRotationSchedule::HostedRotationLambdaProperty
Binds this hosted rotation to a secret.
-
#connections ⇒ AWSCDK::EC2::Connections
Security group connections for this hosted rotation.
-
#initialize(*args) ⇒ HostedRotation
constructor
A new instance of HostedRotation.
Constructor Details
#initialize(*args) ⇒ HostedRotation
Returns a new instance of HostedRotation.
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_methods ⇒ Object
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.
24 25 26 27 28 |
# File 'secrets_manager/hosted_rotation.rb', line 24 def self.maria_db_multi_user() = .is_a?(Hash) ? ::AWSCDK::SecretsManager::MultiUserHostedRotationOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuTXVsdGlVc2VySG9zdGVkUm90YXRpb25PcHRpb25zIn0=")), "options") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_secretsmanager.HostedRotation", "mariaDbMultiUser", []) end |
.maria_db_single_user(options = nil) ⇒ AWSCDK::SecretsManager::HostedRotation
MariaDB Single User.
34 35 36 37 38 |
# File 'secrets_manager/hosted_rotation.rb', line 34 def self.maria_db_single_user( = nil) = .is_a?(Hash) ? ::AWSCDK::SecretsManager::SingleUserHostedRotationOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuU2luZ2xlVXNlckhvc3RlZFJvdGF0aW9uT3B0aW9ucyJ9")), "options") unless .nil? Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_secretsmanager.HostedRotation", "mariaDbSingleUser", []) end |
.mongo_db_multi_user(options) ⇒ AWSCDK::SecretsManager::HostedRotation
MongoDB Multi User.
44 45 46 47 48 |
# File 'secrets_manager/hosted_rotation.rb', line 44 def self.mongo_db_multi_user() = .is_a?(Hash) ? ::AWSCDK::SecretsManager::MultiUserHostedRotationOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuTXVsdGlVc2VySG9zdGVkUm90YXRpb25PcHRpb25zIn0=")), "options") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_secretsmanager.HostedRotation", "mongoDbMultiUser", []) end |
.mongo_db_single_user(options = nil) ⇒ AWSCDK::SecretsManager::HostedRotation
MongoDB Single User.
54 55 56 57 58 |
# File 'secrets_manager/hosted_rotation.rb', line 54 def self.mongo_db_single_user( = nil) = .is_a?(Hash) ? ::AWSCDK::SecretsManager::SingleUserHostedRotationOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuU2luZ2xlVXNlckhvc3RlZFJvdGF0aW9uT3B0aW9ucyJ9")), "options") unless .nil? Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_secretsmanager.HostedRotation", "mongoDbSingleUser", []) end |
.mysql_multi_user(options) ⇒ AWSCDK::SecretsManager::HostedRotation
MySQL Multi User.
64 65 66 67 68 |
# File 'secrets_manager/hosted_rotation.rb', line 64 def self.mysql_multi_user() = .is_a?(Hash) ? ::AWSCDK::SecretsManager::MultiUserHostedRotationOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuTXVsdGlVc2VySG9zdGVkUm90YXRpb25PcHRpb25zIn0=")), "options") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_secretsmanager.HostedRotation", "mysqlMultiUser", []) end |
.mysql_single_user(options = nil) ⇒ AWSCDK::SecretsManager::HostedRotation
MySQL Single User.
74 75 76 77 78 |
# File 'secrets_manager/hosted_rotation.rb', line 74 def self.mysql_single_user( = nil) = .is_a?(Hash) ? ::AWSCDK::SecretsManager::SingleUserHostedRotationOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuU2luZ2xlVXNlckhvc3RlZFJvdGF0aW9uT3B0aW9ucyJ9")), "options") unless .nil? Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_secretsmanager.HostedRotation", "mysqlSingleUser", []) end |
.oracle_multi_user(options) ⇒ AWSCDK::SecretsManager::HostedRotation
Oracle Multi User.
84 85 86 87 88 |
# File 'secrets_manager/hosted_rotation.rb', line 84 def self.oracle_multi_user() = .is_a?(Hash) ? ::AWSCDK::SecretsManager::MultiUserHostedRotationOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuTXVsdGlVc2VySG9zdGVkUm90YXRpb25PcHRpb25zIn0=")), "options") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_secretsmanager.HostedRotation", "oracleMultiUser", []) end |
.oracle_single_user(options = nil) ⇒ AWSCDK::SecretsManager::HostedRotation
Oracle Single User.
94 95 96 97 98 |
# File 'secrets_manager/hosted_rotation.rb', line 94 def self.oracle_single_user( = nil) = .is_a?(Hash) ? ::AWSCDK::SecretsManager::SingleUserHostedRotationOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuU2luZ2xlVXNlckhvc3RlZFJvdGF0aW9uT3B0aW9ucyJ9")), "options") unless .nil? Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_secretsmanager.HostedRotation", "oracleSingleUser", []) end |
.postgre_sql_multi_user(options) ⇒ AWSCDK::SecretsManager::HostedRotation
PostgreSQL Multi User.
104 105 106 107 108 |
# File 'secrets_manager/hosted_rotation.rb', line 104 def self.postgre_sql_multi_user() = .is_a?(Hash) ? ::AWSCDK::SecretsManager::MultiUserHostedRotationOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuTXVsdGlVc2VySG9zdGVkUm90YXRpb25PcHRpb25zIn0=")), "options") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_secretsmanager.HostedRotation", "postgreSqlMultiUser", []) end |
.postgre_sql_single_user(options = nil) ⇒ AWSCDK::SecretsManager::HostedRotation
PostgreSQL Single User.
114 115 116 117 118 |
# File 'secrets_manager/hosted_rotation.rb', line 114 def self.postgre_sql_single_user( = nil) = .is_a?(Hash) ? ::AWSCDK::SecretsManager::SingleUserHostedRotationOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuU2luZ2xlVXNlckhvc3RlZFJvdGF0aW9uT3B0aW9ucyJ9")), "options") unless .nil? Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_secretsmanager.HostedRotation", "postgreSqlSingleUser", []) end |
.redshift_multi_user(options) ⇒ AWSCDK::SecretsManager::HostedRotation
Redshift Multi User.
124 125 126 127 128 |
# File 'secrets_manager/hosted_rotation.rb', line 124 def self.redshift_multi_user() = .is_a?(Hash) ? ::AWSCDK::SecretsManager::MultiUserHostedRotationOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuTXVsdGlVc2VySG9zdGVkUm90YXRpb25PcHRpb25zIn0=")), "options") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_secretsmanager.HostedRotation", "redshiftMultiUser", []) end |
.redshift_single_user(options = nil) ⇒ AWSCDK::SecretsManager::HostedRotation
Redshift Single User.
134 135 136 137 138 |
# File 'secrets_manager/hosted_rotation.rb', line 134 def self.redshift_single_user( = nil) = .is_a?(Hash) ? ::AWSCDK::SecretsManager::SingleUserHostedRotationOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuU2luZ2xlVXNlckhvc3RlZFJvdGF0aW9uT3B0aW9ucyJ9")), "options") unless .nil? Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_secretsmanager.HostedRotation", "redshiftSingleUser", []) end |
.sql_server_multi_user(options) ⇒ AWSCDK::SecretsManager::HostedRotation
SQL Server Multi User.
144 145 146 147 148 |
# File 'secrets_manager/hosted_rotation.rb', line 144 def self.sql_server_multi_user() = .is_a?(Hash) ? ::AWSCDK::SecretsManager::MultiUserHostedRotationOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuTXVsdGlVc2VySG9zdGVkUm90YXRpb25PcHRpb25zIn0=")), "options") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_secretsmanager.HostedRotation", "sqlServerMultiUser", []) end |
.sql_server_single_user(options = nil) ⇒ AWSCDK::SecretsManager::HostedRotation
SQL Server Single User.
154 155 156 157 158 |
# File 'secrets_manager/hosted_rotation.rb', line 154 def self.sql_server_single_user( = nil) = .is_a?(Hash) ? ::AWSCDK::SecretsManager::SingleUserHostedRotationOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuU2luZ2xlVXNlckhvc3RlZFJvdGF0aW9uT3B0aW9ucyJ9")), "options") unless .nil? Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_secretsmanager.HostedRotation", "sqlServerSingleUser", []) 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 |
#connections ⇒ AWSCDK::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 |