Skip to content

SecretProps

Properties for defining a Secret.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-sae-secret

Initializer

import { SecretProps } from '@alicloud/ros-cdk-sae'
const secretProps: SecretProps = { ... }

Properties

Name Type Description
namespaceId string | @alicloud/ros-cdk-core.IResolvable Property namespaceId: The namespace ID where the Secret instance resides.
secretData @alicloud/ros-cdk-core.IResolvable | {[ key: string ]: any} Property secretData: Secret key-value pair data, required.The format is as follows: {"Data":"{"k1":"v1", "k2":"v2"}"} k represents the key and v represents the value.
secretName string | @alicloud/ros-cdk-core.IResolvable Property secretName: Secret instance name.Allows combinations of numbers, letters, en dash (-) and underscores (_) and only start with letters.
secretType string | @alicloud/ros-cdk-core.IResolvable Property secretType: The currently supported Secret instance type.The values are as follows: kubernetes.io\/dockerconfigjson: A confidential dictionary that stores the username and password of the mirror repository, used to pull mirror authentication during deployment.

namespaceIdRequired

public readonly namespaceId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property namespaceId: The namespace ID where the Secret instance resides.

If the namespace you are in is the default namespace, you just need to fill in the RegionId.


secretDataRequired

public readonly secretData: IResolvable | {[ key: string ]: any};
  • Type: @alicloud/ros-cdk-core.IResolvable | {[ key: string ]: any}

Property secretData: Secret key-value pair data, required.The format is as follows: {"Data":"{"k1":"v1", "k2":"v2"}"} k represents the key and v represents the value.


secretNameRequired

public readonly secretName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property secretName: Secret instance name.Allows combinations of numbers, letters, en dash (-) and underscores (_) and only start with letters.


secretTypeRequired

public readonly secretType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property secretType: The currently supported Secret instance type.The values are as follows: kubernetes.io\/dockerconfigjson: A confidential dictionary that stores the username and password of the mirror repository, used to pull mirror authentication during deployment.