1. Packages
  2. Packages
  3. Akeyless Provider
  4. API Docs
  5. RotatedSecretMysql
Viewing docs for akeyless 2.0.1
published on Monday, Apr 27, 2026 by akeyless-community
Viewing docs for akeyless 2.0.1
published on Monday, Apr 27, 2026 by akeyless-community

    Mysql rotated secret resource

    Create RotatedSecretMysql Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RotatedSecretMysql(name: string, args: RotatedSecretMysqlArgs, opts?: CustomResourceOptions);
    @overload
    def RotatedSecretMysql(resource_name: str,
                           args: RotatedSecretMysqlArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def RotatedSecretMysql(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           rotator_type: Optional[str] = None,
                           target_name: Optional[str] = None,
                           rotated_secret_mysql_id: Optional[str] = None,
                           rotate_after_disconnect: Optional[str] = None,
                           item_custom_fields: Optional[Mapping[str, str]] = None,
                           keep_prev_version: Optional[str] = None,
                           key: Optional[str] = None,
                           max_versions: Optional[str] = None,
                           name: Optional[str] = None,
                           rotation_event_ins: Optional[Sequence[str]] = None,
                           rotated_username: Optional[str] = None,
                           rotated_password: Optional[str] = None,
                           description: Optional[str] = None,
                           authentication_credentials: Optional[str] = None,
                           password_length: Optional[str] = None,
                           rotation_hour: Optional[float] = None,
                           rotation_interval: Optional[str] = None,
                           delete_protection: Optional[str] = None,
                           secure_access_certificate_issuer: Optional[str] = None,
                           secure_access_db_name: Optional[str] = None,
                           secure_access_enable: Optional[str] = None,
                           secure_access_hosts: Optional[Sequence[str]] = None,
                           secure_access_web: Optional[bool] = None,
                           tags: Optional[Sequence[str]] = None,
                           auto_rotate: Optional[str] = None)
    func NewRotatedSecretMysql(ctx *Context, name string, args RotatedSecretMysqlArgs, opts ...ResourceOption) (*RotatedSecretMysql, error)
    public RotatedSecretMysql(string name, RotatedSecretMysqlArgs args, CustomResourceOptions? opts = null)
    public RotatedSecretMysql(String name, RotatedSecretMysqlArgs args)
    public RotatedSecretMysql(String name, RotatedSecretMysqlArgs args, CustomResourceOptions options)
    
    type: akeyless:RotatedSecretMysql
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args RotatedSecretMysqlArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args RotatedSecretMysqlArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args RotatedSecretMysqlArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RotatedSecretMysqlArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RotatedSecretMysqlArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var rotatedSecretMysqlResource = new Akeyless.RotatedSecretMysql("rotatedSecretMysqlResource", new()
    {
        RotatorType = "string",
        TargetName = "string",
        RotatedSecretMysqlId = "string",
        RotateAfterDisconnect = "string",
        ItemCustomFields = 
        {
            { "string", "string" },
        },
        KeepPrevVersion = "string",
        Key = "string",
        MaxVersions = "string",
        Name = "string",
        RotationEventIns = new[]
        {
            "string",
        },
        RotatedUsername = "string",
        RotatedPassword = "string",
        Description = "string",
        AuthenticationCredentials = "string",
        PasswordLength = "string",
        RotationHour = 0,
        RotationInterval = "string",
        DeleteProtection = "string",
        SecureAccessCertificateIssuer = "string",
        SecureAccessDbName = "string",
        SecureAccessEnable = "string",
        SecureAccessHosts = new[]
        {
            "string",
        },
        SecureAccessWeb = false,
        Tags = new[]
        {
            "string",
        },
        AutoRotate = "string",
    });
    
    example, err := akeyless.NewRotatedSecretMysql(ctx, "rotatedSecretMysqlResource", &akeyless.RotatedSecretMysqlArgs{
    	RotatorType:           pulumi.String("string"),
    	TargetName:            pulumi.String("string"),
    	RotatedSecretMysqlId:  pulumi.String("string"),
    	RotateAfterDisconnect: pulumi.String("string"),
    	ItemCustomFields: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	KeepPrevVersion: pulumi.String("string"),
    	Key:             pulumi.String("string"),
    	MaxVersions:     pulumi.String("string"),
    	Name:            pulumi.String("string"),
    	RotationEventIns: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	RotatedUsername:               pulumi.String("string"),
    	RotatedPassword:               pulumi.String("string"),
    	Description:                   pulumi.String("string"),
    	AuthenticationCredentials:     pulumi.String("string"),
    	PasswordLength:                pulumi.String("string"),
    	RotationHour:                  pulumi.Float64(0),
    	RotationInterval:              pulumi.String("string"),
    	DeleteProtection:              pulumi.String("string"),
    	SecureAccessCertificateIssuer: pulumi.String("string"),
    	SecureAccessDbName:            pulumi.String("string"),
    	SecureAccessEnable:            pulumi.String("string"),
    	SecureAccessHosts: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	SecureAccessWeb: pulumi.Bool(false),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	AutoRotate: pulumi.String("string"),
    })
    
    var rotatedSecretMysqlResource = new RotatedSecretMysql("rotatedSecretMysqlResource", RotatedSecretMysqlArgs.builder()
        .rotatorType("string")
        .targetName("string")
        .rotatedSecretMysqlId("string")
        .rotateAfterDisconnect("string")
        .itemCustomFields(Map.of("string", "string"))
        .keepPrevVersion("string")
        .key("string")
        .maxVersions("string")
        .name("string")
        .rotationEventIns("string")
        .rotatedUsername("string")
        .rotatedPassword("string")
        .description("string")
        .authenticationCredentials("string")
        .passwordLength("string")
        .rotationHour(0.0)
        .rotationInterval("string")
        .deleteProtection("string")
        .secureAccessCertificateIssuer("string")
        .secureAccessDbName("string")
        .secureAccessEnable("string")
        .secureAccessHosts("string")
        .secureAccessWeb(false)
        .tags("string")
        .autoRotate("string")
        .build());
    
    rotated_secret_mysql_resource = akeyless.RotatedSecretMysql("rotatedSecretMysqlResource",
        rotator_type="string",
        target_name="string",
        rotated_secret_mysql_id="string",
        rotate_after_disconnect="string",
        item_custom_fields={
            "string": "string",
        },
        keep_prev_version="string",
        key="string",
        max_versions="string",
        name="string",
        rotation_event_ins=["string"],
        rotated_username="string",
        rotated_password="string",
        description="string",
        authentication_credentials="string",
        password_length="string",
        rotation_hour=float(0),
        rotation_interval="string",
        delete_protection="string",
        secure_access_certificate_issuer="string",
        secure_access_db_name="string",
        secure_access_enable="string",
        secure_access_hosts=["string"],
        secure_access_web=False,
        tags=["string"],
        auto_rotate="string")
    
    const rotatedSecretMysqlResource = new akeyless.RotatedSecretMysql("rotatedSecretMysqlResource", {
        rotatorType: "string",
        targetName: "string",
        rotatedSecretMysqlId: "string",
        rotateAfterDisconnect: "string",
        itemCustomFields: {
            string: "string",
        },
        keepPrevVersion: "string",
        key: "string",
        maxVersions: "string",
        name: "string",
        rotationEventIns: ["string"],
        rotatedUsername: "string",
        rotatedPassword: "string",
        description: "string",
        authenticationCredentials: "string",
        passwordLength: "string",
        rotationHour: 0,
        rotationInterval: "string",
        deleteProtection: "string",
        secureAccessCertificateIssuer: "string",
        secureAccessDbName: "string",
        secureAccessEnable: "string",
        secureAccessHosts: ["string"],
        secureAccessWeb: false,
        tags: ["string"],
        autoRotate: "string",
    });
    
    type: akeyless:RotatedSecretMysql
    properties:
        authenticationCredentials: string
        autoRotate: string
        deleteProtection: string
        description: string
        itemCustomFields:
            string: string
        keepPrevVersion: string
        key: string
        maxVersions: string
        name: string
        passwordLength: string
        rotateAfterDisconnect: string
        rotatedPassword: string
        rotatedSecretMysqlId: string
        rotatedUsername: string
        rotationEventIns:
            - string
        rotationHour: 0
        rotationInterval: string
        rotatorType: string
        secureAccessCertificateIssuer: string
        secureAccessDbName: string
        secureAccessEnable: string
        secureAccessHosts:
            - string
        secureAccessWeb: false
        tags:
            - string
        targetName: string
    

    RotatedSecretMysql Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The RotatedSecretMysql resource accepts the following input properties:

    RotatorType string
    The rotator type [target/password]
    TargetName string
    The target name to associate
    AuthenticationCredentials string
    The credentials to connect with [use-self-creds/use-target-creds]
    AutoRotate string
    Whether to automatically rotate every rotation_interval days, or disable existing automatic rotation
    DeleteProtection string
    Protection from accidental deletion of this object [true/false]
    Description string
    Description of the object
    ItemCustomFields Dictionary<string, string>
    Additional custom fields to associate with the item
    KeepPrevVersion string
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    Key string
    The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    MaxVersions string
    Set the maximum number of versions, limited by the account settings defaults
    Name string
    Secret name
    PasswordLength string
    The length of the password to be generated
    RotateAfterDisconnect string
    Rotate the value of the secret after SRA session ends [true/false]
    RotatedPassword string
    rotated-username password (relevant only for rotator-type=password)
    RotatedSecretMysqlId string
    The ID of this resource.
    RotatedUsername string
    username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password)
    RotationEventIns List<string>
    How many days before the rotation of the item would you like to be notified
    RotationHour double
    The Hour of the rotation in UTC
    RotationInterval string
    The number of days to wait between every automatic rotation (1-365),custom rotator interval will be set in minutes
    SecureAccessCertificateIssuer string
    Path to the SSH Certificate Issuer for your Akeyless Secure Access
    SecureAccessDbName string
    The DB name (relevant only for DB Dynamic-Secret)
    SecureAccessEnable string
    Enable/Disable secure remote access [true/false]
    SecureAccessHosts List<string>
    Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers)
    SecureAccessWeb bool
    Enable Web Secure Remote Access
    Tags List<string>
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
    RotatorType string
    The rotator type [target/password]
    TargetName string
    The target name to associate
    AuthenticationCredentials string
    The credentials to connect with [use-self-creds/use-target-creds]
    AutoRotate string
    Whether to automatically rotate every rotation_interval days, or disable existing automatic rotation
    DeleteProtection string
    Protection from accidental deletion of this object [true/false]
    Description string
    Description of the object
    ItemCustomFields map[string]string
    Additional custom fields to associate with the item
    KeepPrevVersion string
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    Key string
    The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    MaxVersions string
    Set the maximum number of versions, limited by the account settings defaults
    Name string
    Secret name
    PasswordLength string
    The length of the password to be generated
    RotateAfterDisconnect string
    Rotate the value of the secret after SRA session ends [true/false]
    RotatedPassword string
    rotated-username password (relevant only for rotator-type=password)
    RotatedSecretMysqlId string
    The ID of this resource.
    RotatedUsername string
    username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password)
    RotationEventIns []string
    How many days before the rotation of the item would you like to be notified
    RotationHour float64
    The Hour of the rotation in UTC
    RotationInterval string
    The number of days to wait between every automatic rotation (1-365),custom rotator interval will be set in minutes
    SecureAccessCertificateIssuer string
    Path to the SSH Certificate Issuer for your Akeyless Secure Access
    SecureAccessDbName string
    The DB name (relevant only for DB Dynamic-Secret)
    SecureAccessEnable string
    Enable/Disable secure remote access [true/false]
    SecureAccessHosts []string
    Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers)
    SecureAccessWeb bool
    Enable Web Secure Remote Access
    Tags []string
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
    rotatorType String
    The rotator type [target/password]
    targetName String
    The target name to associate
    authenticationCredentials String
    The credentials to connect with [use-self-creds/use-target-creds]
    autoRotate String
    Whether to automatically rotate every rotation_interval days, or disable existing automatic rotation
    deleteProtection String
    Protection from accidental deletion of this object [true/false]
    description String
    Description of the object
    itemCustomFields Map<String,String>
    Additional custom fields to associate with the item
    keepPrevVersion String
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    key String
    The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    maxVersions String
    Set the maximum number of versions, limited by the account settings defaults
    name String
    Secret name
    passwordLength String
    The length of the password to be generated
    rotateAfterDisconnect String
    Rotate the value of the secret after SRA session ends [true/false]
    rotatedPassword String
    rotated-username password (relevant only for rotator-type=password)
    rotatedSecretMysqlId String
    The ID of this resource.
    rotatedUsername String
    username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password)
    rotationEventIns List<String>
    How many days before the rotation of the item would you like to be notified
    rotationHour Double
    The Hour of the rotation in UTC
    rotationInterval String
    The number of days to wait between every automatic rotation (1-365),custom rotator interval will be set in minutes
    secureAccessCertificateIssuer String
    Path to the SSH Certificate Issuer for your Akeyless Secure Access
    secureAccessDbName String
    The DB name (relevant only for DB Dynamic-Secret)
    secureAccessEnable String
    Enable/Disable secure remote access [true/false]
    secureAccessHosts List<String>
    Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers)
    secureAccessWeb Boolean
    Enable Web Secure Remote Access
    tags List<String>
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
    rotatorType string
    The rotator type [target/password]
    targetName string
    The target name to associate
    authenticationCredentials string
    The credentials to connect with [use-self-creds/use-target-creds]
    autoRotate string
    Whether to automatically rotate every rotation_interval days, or disable existing automatic rotation
    deleteProtection string
    Protection from accidental deletion of this object [true/false]
    description string
    Description of the object
    itemCustomFields {[key: string]: string}
    Additional custom fields to associate with the item
    keepPrevVersion string
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    key string
    The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    maxVersions string
    Set the maximum number of versions, limited by the account settings defaults
    name string
    Secret name
    passwordLength string
    The length of the password to be generated
    rotateAfterDisconnect string
    Rotate the value of the secret after SRA session ends [true/false]
    rotatedPassword string
    rotated-username password (relevant only for rotator-type=password)
    rotatedSecretMysqlId string
    The ID of this resource.
    rotatedUsername string
    username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password)
    rotationEventIns string[]
    How many days before the rotation of the item would you like to be notified
    rotationHour number
    The Hour of the rotation in UTC
    rotationInterval string
    The number of days to wait between every automatic rotation (1-365),custom rotator interval will be set in minutes
    secureAccessCertificateIssuer string
    Path to the SSH Certificate Issuer for your Akeyless Secure Access
    secureAccessDbName string
    The DB name (relevant only for DB Dynamic-Secret)
    secureAccessEnable string
    Enable/Disable secure remote access [true/false]
    secureAccessHosts string[]
    Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers)
    secureAccessWeb boolean
    Enable Web Secure Remote Access
    tags string[]
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
    rotator_type str
    The rotator type [target/password]
    target_name str
    The target name to associate
    authentication_credentials str
    The credentials to connect with [use-self-creds/use-target-creds]
    auto_rotate str
    Whether to automatically rotate every rotation_interval days, or disable existing automatic rotation
    delete_protection str
    Protection from accidental deletion of this object [true/false]
    description str
    Description of the object
    item_custom_fields Mapping[str, str]
    Additional custom fields to associate with the item
    keep_prev_version str
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    key str
    The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    max_versions str
    Set the maximum number of versions, limited by the account settings defaults
    name str
    Secret name
    password_length str
    The length of the password to be generated
    rotate_after_disconnect str
    Rotate the value of the secret after SRA session ends [true/false]
    rotated_password str
    rotated-username password (relevant only for rotator-type=password)
    rotated_secret_mysql_id str
    The ID of this resource.
    rotated_username str
    username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password)
    rotation_event_ins Sequence[str]
    How many days before the rotation of the item would you like to be notified
    rotation_hour float
    The Hour of the rotation in UTC
    rotation_interval str
    The number of days to wait between every automatic rotation (1-365),custom rotator interval will be set in minutes
    secure_access_certificate_issuer str
    Path to the SSH Certificate Issuer for your Akeyless Secure Access
    secure_access_db_name str
    The DB name (relevant only for DB Dynamic-Secret)
    secure_access_enable str
    Enable/Disable secure remote access [true/false]
    secure_access_hosts Sequence[str]
    Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers)
    secure_access_web bool
    Enable Web Secure Remote Access
    tags Sequence[str]
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
    rotatorType String
    The rotator type [target/password]
    targetName String
    The target name to associate
    authenticationCredentials String
    The credentials to connect with [use-self-creds/use-target-creds]
    autoRotate String
    Whether to automatically rotate every rotation_interval days, or disable existing automatic rotation
    deleteProtection String
    Protection from accidental deletion of this object [true/false]
    description String
    Description of the object
    itemCustomFields Map<String>
    Additional custom fields to associate with the item
    keepPrevVersion String
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    key String
    The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    maxVersions String
    Set the maximum number of versions, limited by the account settings defaults
    name String
    Secret name
    passwordLength String
    The length of the password to be generated
    rotateAfterDisconnect String
    Rotate the value of the secret after SRA session ends [true/false]
    rotatedPassword String
    rotated-username password (relevant only for rotator-type=password)
    rotatedSecretMysqlId String
    The ID of this resource.
    rotatedUsername String
    username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password)
    rotationEventIns List<String>
    How many days before the rotation of the item would you like to be notified
    rotationHour Number
    The Hour of the rotation in UTC
    rotationInterval String
    The number of days to wait between every automatic rotation (1-365),custom rotator interval will be set in minutes
    secureAccessCertificateIssuer String
    Path to the SSH Certificate Issuer for your Akeyless Secure Access
    secureAccessDbName String
    The DB name (relevant only for DB Dynamic-Secret)
    secureAccessEnable String
    Enable/Disable secure remote access [true/false]
    secureAccessHosts List<String>
    Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers)
    secureAccessWeb Boolean
    Enable Web Secure Remote Access
    tags List<String>
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RotatedSecretMysql resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing RotatedSecretMysql Resource

    Get an existing RotatedSecretMysql resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: RotatedSecretMysqlState, opts?: CustomResourceOptions): RotatedSecretMysql
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            authentication_credentials: Optional[str] = None,
            auto_rotate: Optional[str] = None,
            delete_protection: Optional[str] = None,
            description: Optional[str] = None,
            item_custom_fields: Optional[Mapping[str, str]] = None,
            keep_prev_version: Optional[str] = None,
            key: Optional[str] = None,
            max_versions: Optional[str] = None,
            name: Optional[str] = None,
            password_length: Optional[str] = None,
            rotate_after_disconnect: Optional[str] = None,
            rotated_password: Optional[str] = None,
            rotated_secret_mysql_id: Optional[str] = None,
            rotated_username: Optional[str] = None,
            rotation_event_ins: Optional[Sequence[str]] = None,
            rotation_hour: Optional[float] = None,
            rotation_interval: Optional[str] = None,
            rotator_type: Optional[str] = None,
            secure_access_certificate_issuer: Optional[str] = None,
            secure_access_db_name: Optional[str] = None,
            secure_access_enable: Optional[str] = None,
            secure_access_hosts: Optional[Sequence[str]] = None,
            secure_access_web: Optional[bool] = None,
            tags: Optional[Sequence[str]] = None,
            target_name: Optional[str] = None) -> RotatedSecretMysql
    func GetRotatedSecretMysql(ctx *Context, name string, id IDInput, state *RotatedSecretMysqlState, opts ...ResourceOption) (*RotatedSecretMysql, error)
    public static RotatedSecretMysql Get(string name, Input<string> id, RotatedSecretMysqlState? state, CustomResourceOptions? opts = null)
    public static RotatedSecretMysql get(String name, Output<String> id, RotatedSecretMysqlState state, CustomResourceOptions options)
    resources:  _:    type: akeyless:RotatedSecretMysql    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AuthenticationCredentials string
    The credentials to connect with [use-self-creds/use-target-creds]
    AutoRotate string
    Whether to automatically rotate every rotation_interval days, or disable existing automatic rotation
    DeleteProtection string
    Protection from accidental deletion of this object [true/false]
    Description string
    Description of the object
    ItemCustomFields Dictionary<string, string>
    Additional custom fields to associate with the item
    KeepPrevVersion string
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    Key string
    The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    MaxVersions string
    Set the maximum number of versions, limited by the account settings defaults
    Name string
    Secret name
    PasswordLength string
    The length of the password to be generated
    RotateAfterDisconnect string
    Rotate the value of the secret after SRA session ends [true/false]
    RotatedPassword string
    rotated-username password (relevant only for rotator-type=password)
    RotatedSecretMysqlId string
    The ID of this resource.
    RotatedUsername string
    username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password)
    RotationEventIns List<string>
    How many days before the rotation of the item would you like to be notified
    RotationHour double
    The Hour of the rotation in UTC
    RotationInterval string
    The number of days to wait between every automatic rotation (1-365),custom rotator interval will be set in minutes
    RotatorType string
    The rotator type [target/password]
    SecureAccessCertificateIssuer string
    Path to the SSH Certificate Issuer for your Akeyless Secure Access
    SecureAccessDbName string
    The DB name (relevant only for DB Dynamic-Secret)
    SecureAccessEnable string
    Enable/Disable secure remote access [true/false]
    SecureAccessHosts List<string>
    Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers)
    SecureAccessWeb bool
    Enable Web Secure Remote Access
    Tags List<string>
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
    TargetName string
    The target name to associate
    AuthenticationCredentials string
    The credentials to connect with [use-self-creds/use-target-creds]
    AutoRotate string
    Whether to automatically rotate every rotation_interval days, or disable existing automatic rotation
    DeleteProtection string
    Protection from accidental deletion of this object [true/false]
    Description string
    Description of the object
    ItemCustomFields map[string]string
    Additional custom fields to associate with the item
    KeepPrevVersion string
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    Key string
    The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    MaxVersions string
    Set the maximum number of versions, limited by the account settings defaults
    Name string
    Secret name
    PasswordLength string
    The length of the password to be generated
    RotateAfterDisconnect string
    Rotate the value of the secret after SRA session ends [true/false]
    RotatedPassword string
    rotated-username password (relevant only for rotator-type=password)
    RotatedSecretMysqlId string
    The ID of this resource.
    RotatedUsername string
    username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password)
    RotationEventIns []string
    How many days before the rotation of the item would you like to be notified
    RotationHour float64
    The Hour of the rotation in UTC
    RotationInterval string
    The number of days to wait between every automatic rotation (1-365),custom rotator interval will be set in minutes
    RotatorType string
    The rotator type [target/password]
    SecureAccessCertificateIssuer string
    Path to the SSH Certificate Issuer for your Akeyless Secure Access
    SecureAccessDbName string
    The DB name (relevant only for DB Dynamic-Secret)
    SecureAccessEnable string
    Enable/Disable secure remote access [true/false]
    SecureAccessHosts []string
    Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers)
    SecureAccessWeb bool
    Enable Web Secure Remote Access
    Tags []string
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
    TargetName string
    The target name to associate
    authenticationCredentials String
    The credentials to connect with [use-self-creds/use-target-creds]
    autoRotate String
    Whether to automatically rotate every rotation_interval days, or disable existing automatic rotation
    deleteProtection String
    Protection from accidental deletion of this object [true/false]
    description String
    Description of the object
    itemCustomFields Map<String,String>
    Additional custom fields to associate with the item
    keepPrevVersion String
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    key String
    The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    maxVersions String
    Set the maximum number of versions, limited by the account settings defaults
    name String
    Secret name
    passwordLength String
    The length of the password to be generated
    rotateAfterDisconnect String
    Rotate the value of the secret after SRA session ends [true/false]
    rotatedPassword String
    rotated-username password (relevant only for rotator-type=password)
    rotatedSecretMysqlId String
    The ID of this resource.
    rotatedUsername String
    username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password)
    rotationEventIns List<String>
    How many days before the rotation of the item would you like to be notified
    rotationHour Double
    The Hour of the rotation in UTC
    rotationInterval String
    The number of days to wait between every automatic rotation (1-365),custom rotator interval will be set in minutes
    rotatorType String
    The rotator type [target/password]
    secureAccessCertificateIssuer String
    Path to the SSH Certificate Issuer for your Akeyless Secure Access
    secureAccessDbName String
    The DB name (relevant only for DB Dynamic-Secret)
    secureAccessEnable String
    Enable/Disable secure remote access [true/false]
    secureAccessHosts List<String>
    Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers)
    secureAccessWeb Boolean
    Enable Web Secure Remote Access
    tags List<String>
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
    targetName String
    The target name to associate
    authenticationCredentials string
    The credentials to connect with [use-self-creds/use-target-creds]
    autoRotate string
    Whether to automatically rotate every rotation_interval days, or disable existing automatic rotation
    deleteProtection string
    Protection from accidental deletion of this object [true/false]
    description string
    Description of the object
    itemCustomFields {[key: string]: string}
    Additional custom fields to associate with the item
    keepPrevVersion string
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    key string
    The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    maxVersions string
    Set the maximum number of versions, limited by the account settings defaults
    name string
    Secret name
    passwordLength string
    The length of the password to be generated
    rotateAfterDisconnect string
    Rotate the value of the secret after SRA session ends [true/false]
    rotatedPassword string
    rotated-username password (relevant only for rotator-type=password)
    rotatedSecretMysqlId string
    The ID of this resource.
    rotatedUsername string
    username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password)
    rotationEventIns string[]
    How many days before the rotation of the item would you like to be notified
    rotationHour number
    The Hour of the rotation in UTC
    rotationInterval string
    The number of days to wait between every automatic rotation (1-365),custom rotator interval will be set in minutes
    rotatorType string
    The rotator type [target/password]
    secureAccessCertificateIssuer string
    Path to the SSH Certificate Issuer for your Akeyless Secure Access
    secureAccessDbName string
    The DB name (relevant only for DB Dynamic-Secret)
    secureAccessEnable string
    Enable/Disable secure remote access [true/false]
    secureAccessHosts string[]
    Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers)
    secureAccessWeb boolean
    Enable Web Secure Remote Access
    tags string[]
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
    targetName string
    The target name to associate
    authentication_credentials str
    The credentials to connect with [use-self-creds/use-target-creds]
    auto_rotate str
    Whether to automatically rotate every rotation_interval days, or disable existing automatic rotation
    delete_protection str
    Protection from accidental deletion of this object [true/false]
    description str
    Description of the object
    item_custom_fields Mapping[str, str]
    Additional custom fields to associate with the item
    keep_prev_version str
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    key str
    The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    max_versions str
    Set the maximum number of versions, limited by the account settings defaults
    name str
    Secret name
    password_length str
    The length of the password to be generated
    rotate_after_disconnect str
    Rotate the value of the secret after SRA session ends [true/false]
    rotated_password str
    rotated-username password (relevant only for rotator-type=password)
    rotated_secret_mysql_id str
    The ID of this resource.
    rotated_username str
    username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password)
    rotation_event_ins Sequence[str]
    How many days before the rotation of the item would you like to be notified
    rotation_hour float
    The Hour of the rotation in UTC
    rotation_interval str
    The number of days to wait between every automatic rotation (1-365),custom rotator interval will be set in minutes
    rotator_type str
    The rotator type [target/password]
    secure_access_certificate_issuer str
    Path to the SSH Certificate Issuer for your Akeyless Secure Access
    secure_access_db_name str
    The DB name (relevant only for DB Dynamic-Secret)
    secure_access_enable str
    Enable/Disable secure remote access [true/false]
    secure_access_hosts Sequence[str]
    Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers)
    secure_access_web bool
    Enable Web Secure Remote Access
    tags Sequence[str]
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
    target_name str
    The target name to associate
    authenticationCredentials String
    The credentials to connect with [use-self-creds/use-target-creds]
    autoRotate String
    Whether to automatically rotate every rotation_interval days, or disable existing automatic rotation
    deleteProtection String
    Protection from accidental deletion of this object [true/false]
    description String
    Description of the object
    itemCustomFields Map<String>
    Additional custom fields to associate with the item
    keepPrevVersion String
    Whether to keep previous version [true/false]. If not set, use default according to account settings
    key String
    The name of a key that is used to encrypt the secret value (if empty, the account default protectionKey key will be used)
    maxVersions String
    Set the maximum number of versions, limited by the account settings defaults
    name String
    Secret name
    passwordLength String
    The length of the password to be generated
    rotateAfterDisconnect String
    Rotate the value of the secret after SRA session ends [true/false]
    rotatedPassword String
    rotated-username password (relevant only for rotator-type=password)
    rotatedSecretMysqlId String
    The ID of this resource.
    rotatedUsername String
    username to be rotated, if selected use-self-creds at rotator-creds-type, this username will try to rotate it's own password, if use-target-creds is selected, target credentials will be use to rotate the rotated-password (relevant only for rotator-type=password)
    rotationEventIns List<String>
    How many days before the rotation of the item would you like to be notified
    rotationHour Number
    The Hour of the rotation in UTC
    rotationInterval String
    The number of days to wait between every automatic rotation (1-365),custom rotator interval will be set in minutes
    rotatorType String
    The rotator type [target/password]
    secureAccessCertificateIssuer String
    Path to the SSH Certificate Issuer for your Akeyless Secure Access
    secureAccessDbName String
    The DB name (relevant only for DB Dynamic-Secret)
    secureAccessEnable String
    Enable/Disable secure remote access [true/false]
    secureAccessHosts List<String>
    Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers)
    secureAccessWeb Boolean
    Enable Web Secure Remote Access
    tags List<String>
    List of the tags attached to this secret. To specify multiple tags use argument multiple times: -t Tag1 -t Tag2
    targetName String
    The target name to associate

    Package Details

    Repository
    akeyless akeyless-community/terraform-provider-akeyless
    License
    Notes
    This Pulumi package is based on the akeyless Terraform Provider.
    Viewing docs for akeyless 2.0.1
    published on Monday, Apr 27, 2026 by akeyless-community
      Try Pulumi Cloud free. Your team will thank you.