AwsSecret
Bases: DuploTenantResourceV3
apply
Apply a service.
create
Create an AWS Secretmanager Secret Usage: cli usage
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
NAME
|
The name of the AWS Secret to create. |
None
|
-pval/--parametervalue
|
Arbitrary text to set in the AWS secret. |
required | |
-body
|
path to a raw json/yaml post body, e.g: |
required |
Returns:
Name | Type | Description |
---|---|---|
resource |
dict
|
The AWS secret object. |
Raises:
Type | Description |
---|---|
DuploError
|
If the AWS secret already exists. |
delete
Delete a AwsSecret resource by name.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
NAME
|
The name of the AwsSecret resource to delete. |
required |
Returns:
Name | Type | Description |
---|---|---|
message |
dict
|
A success message. |
Raises:
Type | Description |
---|---|
DuploError
|
If the {{kind}} resource could not be found or deleted. |
find
Find as AWS Secretmanager secret by name and return it's content
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
NAME
|
The name of the AWS secret to find. |
required |
-show/--showsensitive
|
Display value of the secretstring field |
required |
Returns:
Name | Type | Description |
---|---|---|
resource |
dict
|
The AWS secret object. |
Raises:
Type | Description |
---|---|
DuploError
|
If the AWS secret could not be found. |
list
Retrieve a List of AwsSecret resources
Returns:
Name | Type | Description |
---|---|---|
list |
list
|
A list of AwsSecret. |
update
Update an AWS Secretmanager secret. Usage: cli usage
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
NAME
|
The name of the AWS secret to find. |
None
|
-pval/--parametervalue
|
The new value for the AWS secret. This overwrites the existing value! |
required |
Returns:
Name | Type | Description |
---|---|---|
resource |
dict
|
The AWS secret object. |
Raises:
Type | Description |
---|---|
DuploError
|
If the AWS secret could not be found or doesn't exist. |